# Looks good in 3d modeler and ugly in game

This topic is 4739 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I render a sword in milkshape3D and it looks great. Edges are smooth. Then when I use .x file in my program then this sword looks ugly! The edges are like a staircase! And it's just blocky. What do I do?

##### Share on other sites
this is because the modeler is smoothing out the edges

this is usually too slow for games
increase the resolution to reduce the effect

##### Share on other sites
Usually you can prevent this artifact by smoothing the normals. Do you have lighting enabled in your game?

##### Share on other sites
I created a light and placed it but did not see any difference when the light was not created.

##### Share on other sites
Depending on how you created/imported the mesh in the code, you may want to average out some of the vertices. Take a "stair-step" that goes through points A, B, C, and D. Leave A and C the same, then average B to the midpoint between them. Then do the same thing with B, C, and D, but use the original value of B to find the new location for C, etc. Basically, create a new mesh, smooth out the vertices, then assign the new mesh to the old pointer/object. I ran into this problem with a height map a while back. GameDev actually had an article not too long ago on this solution. Granted, working with a mesh is a little bit different and it depends on how much control you have over the vertices of the mesh, but the principle should be the same.

There may be another way around this using Milkshape3D, but I'm not familiar with the intricacies of that program, so all I have to offer is a coding solution.

##### Share on other sites
odd, i use milkshape for my models and have never ran into this problem.

1) are you exporting while in animation mode?
2) are you dramatically changing the scale of the model when you render it?
3) which export are you using? the JT or dx8?

##### Share on other sites
Can you post a screenshot/exported image from the modeller, and a screenshot from the game? Maybe your normals are set to per-face not per-vertex but it would help to see exactly what's going on...

##### Share on other sites
the model is fine, i bet its just lighting poorly.

u could make a normal mapper and make a bump mapped game then it will light
properly.

gouraud diffuse shading is shit, no other way to put it.

look at my model -=-
http://www.geocities.com/magnus_wootton/Tankp.jpg

i convert it to high poly then store the normals in a texture once its wrapped.

gouraud sucks... plainly put.

u might as well not light at all.

species847 is a stupid little piece of shit who talks like a dyslexic cat.
u annoy the piss out of me. u dont know fuck all compared to me.

[Edited by - Magnus Wootton on March 2, 2005 5:26:53 AM]

##### Share on other sites
Dude - if ur lines are stepped , thats cos the line anti-aliasing is not switched on. The same happens with Meshes created in 3DStudio Max.

U can enable this in code or via the GFX Card interface - in ATI its called
"SmoothVision" and u have the option of 2x/4x/6x/8x ... The higher u go , the more ur frame rate will drop.

Progs like 3DSMax dont do real renders like we do but rather Ray Tracing which is more complex but a better resolution.

##### Share on other sites
u ol sp34x 1337 & m0b1l3 f0n3 h4x0rz h3r3 datz t3h kw3l lol!!111one

Anyway, if you want to speak english one day, don't forget I won't waste my time to decipher your posts. I have loads of more interesting things to do. Don't forget you post on a FORUM. We grant you some time to write your text. This is not irc, or any other instant messaging system. So why don't you use plain English to share your ideas with others?

Or maybe you want me to use French slang?

(Sorry for this obvious rant. These "u", "ur", and so on are a PITA.)

Special mention to Magnus Wootton: please read the definition of politeness. And thanks for your insightful answer: "shit", "sucks", "fuck", + insults. Any more interesting words?

##### Share on other sites
Gourad is fine anyway. Just not perfect where the distance between vertices is not small compared to the distance from the light. But normally it is!

##### Share on other sites
I have full screen antialiasing working in my engine now but sadly my card doesn't support it. I can try to see if my card supports line antialiasing but I believe that line antialiasing slows down the game more than full screen.

##### Share on other sites
Quote:
 Original post by species8472Dude - if ur lines are stepped , thats cos the line anti-aliasing is not switched on. The same happens with Meshes created in 3DStudio Max. U can enable this in code or via the GFX Card interface - in ATI its called"SmoothVision" and u have the option of 2x/4x/6x/8x ... The higher u go , the more ur frame rate will drop. Progs like 3DSMax dont do real renders like we do but rather Ray Tracing which is more complex but a better resolution.

u r 50 1337!!1!1!1!1111~~`2eleven

Also cos = cosine cuz = because.