Page 1 of 1

World is too small

Posted: Fri Oct 05, 2012 2:26 am
by ItsBritneyBitch
I'm loading VMF (Valve Hammer Map Files) files into irrlicht using the exact same units. For example, 64 units equals 1.2 meters in Hammer. The thing is, everything looks quite smaller from the camera's perspective. I can't seem to find a setting to make the camera smaller or scale it down somehow (aspect ratio or FOV settings have nothing to do with this). I also don't want to scale the geometry up. Is there any way to make 64 units look like 1.2 meters in Irrlicht? (For example, when rendering a triangle 64 units tall)

Re: World is too small

Posted: Fri Oct 05, 2012 3:55 am
by codetiger
ItsBritneyBitch wrote:everything looks quite smaller from the camera's perspective
Looks small relative to which object? I think you are relating it to the software that you use to design the 3d Models. FOV, location of the camera and location of the objects are the factors affecting the size of the rendered images.

Re: World is too small

Posted: Fri Oct 05, 2012 1:40 pm
by hendu
Camera move speed also affects perception, if you're using the default FPS camera.

Re: World is too small

Posted: Fri Oct 05, 2012 5:18 pm
by ItsBritneyBitch
codetiger wrote:
ItsBritneyBitch wrote:everything looks quite smaller from the camera's perspective
Looks small relative to which object? I think you are relating it to the software that you use to design the 3d Models. FOV, location of the camera and location of the objects are the factors affecting the size of the rendered images.
Let's say I have a 64x64 quad both in Irrlicht and in Hammer. It looks quite smaller in Irrlicht.

Re: World is too small

Posted: Sat Oct 06, 2012 3:48 am
by codetiger
The objects are rendered in different camera settings, that is why you see the difference in size. Post the camera settings in both environment.

Re: World is too small

Posted: Sat Oct 06, 2012 4:59 pm
by ItsBritneyBitch
codetiger wrote:The objects are rendered in different camera settings, that is why you see the difference in size. Post the camera settings in both environment.
Hammer:
FOV: 90
Back clipping plane: 5000 (I guess this means far plane)

Irrlicht:
<default settings>
FOV: PI/ 2.5f (aprox 71 degrees)
Near clipping plane: 1
Far clipping plane: 2000

Still, changing any of these settings doesn't make things appear bigger. The only way I can do that is scaling geometry, but I really don't want to. Thanks for your help.

Re: World is too small

Posted: Sat Oct 06, 2012 6:30 pm
by hendu
Just move your camera closer? ;)

Re: World is too small

Posted: Mon Oct 08, 2012 7:48 am
by Cube_
Ok, I have been following this thread, couldn't it simply be that a unit in hammer is bigger than a unit in irrlicht? (Which means that if the unit is 10x bigger in hammer than in irrlicht the mesh will appear to be 10x smaller) Try scaling it up?

Re: World is too small

Posted: Mon Oct 08, 2012 10:57 am
by codetiger
@aammmsterdddam
Even if the unit is 10x different, how would the rendering be affected? The distances will get scaled as well, and the final output should be the same.

As far as I understand, Scaling both units (distance and size units) in 3d does not change anything while rendering.

Re: World is too small

Posted: Mon Oct 08, 2012 10:59 am
by CuteAlien
@aamsterdddam: It's just numbers... and they are not changed on export/import. They just don't mean anything without camera and/or other objects for comparison. A number just _is_ , you can't tell if it's large or small without context.

Camera movement speed also plays a big role in how large objects feel.

Re: World is too small

Posted: Mon Oct 08, 2012 4:58 pm
by hendu
hendu wrote:Camera move speed also affects perception, if you're using the default FPS camera.
CuteAlien wrote:Camera movement speed also plays a big role in how large objects feel.
;)

Re: World is too small

Posted: Mon Oct 08, 2012 5:06 pm
by CuteAlien
@hendu: Sorry, missed that :-)

Re: World is too small

Posted: Sun Oct 14, 2012 8:49 am
by MynithiX
I don't know if the problem is solved, or if this solution was post, but:

Code: Select all

        node->setScale(core::vector3df(x,x,x));
helps :D

Re: World is too small

Posted: Wed Oct 17, 2012 3:03 am
by christianclavet
Hi!
Are you sure about the scale?! Been working with the source engine on some projects... And the scale we use is not that at all. A character is around 72 units (6 feet tall - 2 meters )

Check here:
http://www.worldofleveldesign.com/categ ... nsions.php