Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 16th Jul 2004 02:07
I want to make a world inside a skybox, but this skybox must include object like enormous starships or other giant buildings too far but not
dead.

The idea is to create a camera that point to this "skyworld" and visualize it backdropped, behind the world. When i move, my camera moves normally, and the sky camera moves very slowly, and i have the sensation of a skybox.

It is possible on dppro to have a camera backdropped on the screen ?

(i think that games like painkiller use this method, but i'm not sure).

This damned algorithm called LIFE seems not work very well
mR n
21
Years of Service
User Offline
Joined: 25th Jun 2003
Location:
Posted: 16th Jul 2004 05:21
i think i know what you're saying. you could have this "skyworld" away from the player's world and you could have a camera trained on it and move the camera as the player moves. then by using the SET CAMERA TO IMAGE command you can grab what appears on the camera and set it onto your skybox. not quite the effect you wanted but it would work.

oh, and if nothing ever changes in this "skyworld" then why not just make it a texture?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Jul 2004 05:31
Yes it is.

Firstly, you need to ensure that your skybox is the first object that you create within your game, and then you can use the DISABLE OBJECT ZWRITE to stop it updating the z-buffer.

Note - it is the order of creation and *not* the object number that determines the correct draw order. The earlier you create an object, the earlier it is rendered in the draw sequence.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 16th Jul 2004 07:28
ianM, can you post me an example ?
i'm not sure of what you explained.

This damned algorithm called LIFE seems not work very well
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Jul 2004 07:33
Here is a very basic example - I don't have time for much more at the moment.



Object 1 is the skysphere, object 2 is an object inside the sphere and object 3 is an object outside the sphere.

You can move the MAKE OBJECT SPHERE around within that section to see what happens to the other objects (ie, try making that command the last of the three and see what happens)

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 16th Jul 2004 07:55
I tried for now to grab an image from a separate camera, but it does'nt work : it returns me an error : cannot grab image due to an illegal area (error 504). What this means ???????

now i try the other method.

This damned algorithm called LIFE seems not work very well
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 16th Jul 2004 08:34
Oh no !!! how i can return to my original camera view ?

i tried
set current camera 0

but it remains on previous created camera.

Dont tell me this is another bugggg of dbpro.

This damned algorithm called LIFE seems not work very well
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Jul 2004 16:02
It's not a DBPro bug - it's your code. Remove that MAKE CAMERA command you added.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 17th Jul 2004 07:53
Ok, i understanded the working way of the cameras. i found a solution to change cameras. But the problem of the illegal area (written 3 posts ago) remains. What is this ???

This damned algorithm called LIFE seems not work very well
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jul 2004 08:05
Dunno, but show a small example and I'm sure we'll be able to work it out

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2025-06-06 17:24:30
Your offset time is: 2025-06-06 17:24:30