Hello Everyone,
im currently trying to import my own model for the arrows into the game. The model is rendered Correctly as long as i am not using the Rigidbody Component for the Entity. I thougth it might have been the model i was using. So i modelled a simple scaled cube in blender and exported it with normals and without the material information. I also exportet the UV-Map and painted it with a (very) simple texture. I followed the Guide for importing the model into the game that has been posted in the wiki and added The mesh component the the entity with the reference to the material i created for the cube. Does anybody else had the same problem ? If so how can i fix it. I am relativly new to blender and modelling so it may be that i did something wrong in blender.
Heres the data i have defined for the Material and the Meshcomponent of the Entity.
The arrow-Prefab file
"Mesh" : {
"mesh" : "engine:scaledCube",<-- referencing the .obj File int the mesh package
"material" : "engine:testScaledCube"
}
The JSON-File for the defined Material testScaledCube.mat:
{
"shader" : "engine:genericMesh",
"params" : {
"diffuse" : "engine:scaledCube", <--- referencing the the .png file in the texture packge
"colorOffset" : [1.0, 1.0, 1.0],
"textured" : true
}
}
I attached the model and the texture i used for the scaled cube.
Many thanks in advance.
im currently trying to import my own model for the arrows into the game. The model is rendered Correctly as long as i am not using the Rigidbody Component for the Entity. I thougth it might have been the model i was using. So i modelled a simple scaled cube in blender and exported it with normals and without the material information. I also exportet the UV-Map and painted it with a (very) simple texture. I followed the Guide for importing the model into the game that has been posted in the wiki and added The mesh component the the entity with the reference to the material i created for the cube. Does anybody else had the same problem ? If so how can i fix it. I am relativly new to blender and modelling so it may be that i did something wrong in blender.
Heres the data i have defined for the Material and the Meshcomponent of the Entity.
The arrow-Prefab file
"Mesh" : {
"mesh" : "engine:scaledCube",<-- referencing the .obj File int the mesh package
"material" : "engine:testScaledCube"
}
The JSON-File for the defined Material testScaledCube.mat:
{
"shader" : "engine:genericMesh",
"params" : {
"diffuse" : "engine:scaledCube", <--- referencing the the .png file in the texture packge
"colorOffset" : [1.0, 1.0, 1.0],
"textured" : true
}
}
I attached the model and the texture i used for the scaled cube.
Many thanks in advance.
Attachments
-
27.1 KB Views: 576
-
1.1 KB Views: 600