Where to find 3D model, mesh?
Where to find 3D model, mesh?
Hi all.
By trying out the tutorials, assume that I have basic understanding of the syntax of this engine, but all the meshes and models are provided by Irrlicht. So, where to find other meshes? or are there any software for me to generate them on my own?
Thanks.
By trying out the tutorials, assume that I have basic understanding of the syntax of this engine, but all the meshes and models are provided by Irrlicht. So, where to find other meshes? or are there any software for me to generate them on my own?
Thanks.
Google for them or model them on your own with modelling tools like Maya, blender, milkshape.
Working on game: Marrbles (Currently stopped).
IMesh* mesh = smgr->getMesh("3dm-bar_stool.3DS");
IMeshSceneNode* node = smgr->addMeshSceneNode(mesh);
I used the above code but nothing is shown on the screen.
the model comes from http://www.3dm3.com/modelsbank/model335.htm
IMeshSceneNode* node = smgr->addMeshSceneNode(mesh);
I used the above code but nothing is shown on the screen.
the model comes from http://www.3dm3.com/modelsbank/model335.htm
1. did you disabled lighting for the mesh?wsw1231 wrote:IMesh* mesh = smgr->getMesh("3dm-bar_stool.3DS");
IMeshSceneNode* node = smgr->addMeshSceneNode(mesh);
I used the above code but nothing is shown on the screen.
the model comes from http://www.3dm3.com/modelsbank/model335.htm
2. did you created a camera?
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
you have to either disable lighting of the model or create a light to the scene otherwise the model will look whole blackwsw1231 wrote:1. I have not modified anything about the mesh. I just use those 2 statements.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
I think I have figured out the problem.
I use addCameraSceneNodeFPS() then press the arrow keys, the mesh will show up.....
However, I do not know why the FPS is so low after loading this mesh....
Also, I have added a statement which include the light but the mesh does not have any reflection of light.
The statements are as follows:
ILightSceneNode* light1 = smgr->addLightSceneNode( 0, core::vector3df(0,400,-200), video::SColorf(0.3f,0.3f,0.3f), 1.0f, 1 );
IMesh* mesh = smgr->getMesh("3dm-bar_stool.3DS");
IMeshSceneNode* node = smgr->addMeshSceneNode(mesh);
node->setMaterialFlag(EMF_LIGHTING, true);
I use addCameraSceneNodeFPS() then press the arrow keys, the mesh will show up.....
However, I do not know why the FPS is so low after loading this mesh....
Also, I have added a statement which include the light but the mesh does not have any reflection of light.
The statements are as follows:
ILightSceneNode* light1 = smgr->addLightSceneNode( 0, core::vector3df(0,400,-200), video::SColorf(0.3f,0.3f,0.3f), 1.0f, 1 );
IMesh* mesh = smgr->getMesh("3dm-bar_stool.3DS");
IMeshSceneNode* node = smgr->addMeshSceneNode(mesh);
node->setMaterialFlag(EMF_LIGHTING, true);
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
If the model has *no* reflection of light, you cannot see it. Since you can, there's definitely reflection of light. Maybe you don't have shininess on it. This depends on proper normals and proper materials settings. Don't know about yours.
The FPS can be low because: You have a slow system, you chose the wrong driver, the mesh is too large. Maybe also other things, but those are the most likely ones.
The FPS can be low because: You have a slow system, you chose the wrong driver, the mesh is too large. Maybe also other things, but those are the most likely ones.
When you say "reflection of light", do you mean Specular highlights?
I am using the model from http://www.3dm3.com/modelsbank/model335.htm
and the result is as follows:
Why is there just one black object????
How can I adjust the light, such that I can see the object like the one shown in http://www.3dm3.com/modelsbank/model335.htm ?
and the result is as follows:
Why is there just one black object????
How can I adjust the light, such that I can see the object like the one shown in http://www.3dm3.com/modelsbank/model335.htm ?
-
- Posts: 39
- Joined: Mon Sep 06, 2010 5:09 pm
- Location: Italy
Well you should at least increase the radius of the light(unless you are using a directional light). 1.0f isn't very much with the position you set for the light, try with 400.0f.ILightSceneNode* light1 = smgr->addLightSceneNode( 0, core::vector3df(0,400,-200), video::SColorf(0.3f,0.3f,0.3f), 1.0f, 1 );
Also, if you want a bit of shininess, tutorial 13.Render to texture shows how to apply it to the mesh material.
Code: Select all
node->getMaterial(0).Shininess = 20.0f; // set size of specular highlights
The screenshot you provided (and also all the other screenshots shown in the site) seems that was rendered with the modeling program used by the author of the model (so its implied the use of some shaders like Per-Pixel Lighting or Normal Mapping).How can I adjust the light, such that I can see the object like the one shown in http://www.3dm3.com/modelsbank/model335.htm ?