Whats up wit da SKYBOX?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Whats up wit da SKYBOX?

Post by [dx/x]=HUNT3R »

Ok, my skybox is not moving with the camera now since I updated to the new 0.4.1 It just constantly shows the one picture that is straight ahead when the camera is started. I cant move around and see the other backgrounds, it just constantly keeps that one picture there. What gives???
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

*smacks head*

I knew something looked funny but I couldn't put my finger on it since the code I'm working on now doesn't involve moving the camera much.

I'm seeing the no-move effect using DirectX.
Crud, how do I do this again?
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Post by [dx/x]=HUNT3R »

I'm getting it with both the DirectX8 and OpenGL renderer.
indianbeard
Posts: 20
Joined: Mon Sep 08, 2003 6:35 am
Location: India

Post by indianbeard »

I do not know whether i have any role in this advanced forum.But while correcting the skybox problem, please correct the dithering too. The seams around the lightsource in the skybox(techdemo)is very visible.Evenif we change the bit depth to 32 in ititialisation the pattern doesn't change.The images are 24bit RGB.So the banding is created by the engine.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Sorry for this bug. Will be repaired next time, as always. :)
If you want to repair it until then by yourself, just change the transformation matrix in CSkyBoxSceneNode.cpp in the ::render() method to

Code: Select all

core::matrix4 mat;
mat.setTranslation(camera->getAbsolutePosition());
Post Reply