How to render this kind of 3D model?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
wsw1231
Posts: 148
Joined: Fri Oct 01, 2010 7:55 am

How to render this kind of 3D model?

Post by wsw1231 »

http://www.3dmodelfree.com/3dmodel/list403-1.htm

I have downloaded a 3d model from this site.
And then I open the model in 3ds max, then export it to .3DS format.

After loading the .3ds in Irrlicht, the object looks strange
Image

Does anyone know how to render the sofa as shown in the website?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

I believe the 3ds format isn't fully supported, so maybe you should try importing the mesh in max and export it as an .obj and try again to see if you get a better result

Also, the picture you see on that site probably wasn't done in realtime, so you'll never get the exact same quality
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess that you only need the correct texture for a good looking result. The lighting may be slightly better if you use NORMALIZE_NORMALS. But due to lack of smoothing group support in the 3ds loader it will be never perfect. Other formats would indeed help for better lighting.
wsw1231
Posts: 148
Joined: Fri Oct 01, 2010 7:55 am

Post by wsw1231 »

I notice that the obj will look fine if I do not reduce its scale.

Usually, the obj downloaded from the web is quite large when it is loaded by Irrlicht. So, before loading this obj, I need to in advance reduce its size.

However, after loading the obj, the texture cannot be seen and the surface of the obj is fully white. This will happen only if the obj size is reduced

How can I solve that problem?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

wsw1231 wrote:I notice that the obj will look fine if I do not reduce its scale.

Usually, the obj downloaded from the web is quite large when it is loaded by Irrlicht. So, before loading this obj, I need to in advance reduce its size.

However, after loading the obj, the texture cannot be seen and the surface of the obj is fully white. This will happen only if the obj size is reduced

How can I solve that problem?
This probably happens because the object normals aren't normalized, you can set this as a material flag in your object's material
Check here for a reference http://irrlicht.sourceforge.net/docu/na ... f40add70d3
Post Reply