Game Development Community

Environmental Mapping Doesn't Update...

by Kirby Webber · in Torque Game Engine · 07/23/2005 (12:26 pm) · 2 replies

I've noticed while prototyping my current project that the environmental mapping of the control object doesn't update. It displays as though it's a baked in texture. =\

I'm specifically working with hover vehicles - don't know if that matters or not...

What's odd is that if you view the object from the free floating camera and move around the object, the reflections shift as they should, but when the camera is attached to the object, it's static?

I looked around in the engine long enough to realize that I have no freaking idea where to even start with this...

#1
07/23/2005 (1:11 pm)
Just curious - if you're driving along in the vehicle, and freelook the camera around while still attached to the vehicle (I think the default button for this is r-mouse) do you see the reflections shift? I'm just wondering if the reflection shift is dependent on camera movement, and thus when you're viewing the thing from its attached camera, you're not moving the camera relative to the object (and not rotating the object relative to the camerea) and thus no shifting happens... It's not realistic, but that might be the way the env mapping works in Torque. I'll go check it out on some env-mapped art I'm working on to see how it works.

-Spencer
#2
07/23/2005 (1:31 pm)
I just looked at my character in-game. When I turned the character left and right, the env-map didn't shift. But it did shift if I looked up and down. If the camera chasing your car can't look up and down, I would imagine that you're not going to see the env-map shift.

If this is the case, a workaround might be as simple as unlocking the camera from the car, or loosening its link to the car. Then the car will be able to turn a little relative to the camera, and you'll get to see some shift. I think there's settings for this in the car.cs I have, so you might have them too. It is, of course, a less than ideal solution :)

-Spencer