Hi.
Does anyone know how to link several sprites so that they fit into a single parallax sky, like the moon ground or the black buildings?
Thanx in advance
Page 1 of 1
How to make a multi-sprite parallax ?
#1 Posted 17 November 2019 - 01:41 AM
This post has been edited by Seb Luca: 17 November 2019 - 01:45 AM
#2 Posted 17 November 2019 - 05:56 PM
with a def file
cut the sheet(s) up like it lines the inside of a box or cube. then define them
this is probably outdated, but something like this:
// skybox
tilefromtexture 123 { file "directory/filename_west.jpg" }
defineskybox 123 0 0 "directory/filename_south.jpg" "directory/filename_west.jpg" "directory/filename_north.jpg" "directory/filename_east.jpg" "directory/filename_up.jpg" "directory/filename_down.jpg"
then sprite #123 will be that parallax sky set
for a more accurate answer, ask Fox
cut the sheet(s) up like it lines the inside of a box or cube. then define them
this is probably outdated, but something like this:
// skybox
tilefromtexture 123 { file "directory/filename_west.jpg" }
defineskybox 123 0 0 "directory/filename_south.jpg" "directory/filename_west.jpg" "directory/filename_north.jpg" "directory/filename_east.jpg" "directory/filename_up.jpg" "directory/filename_down.jpg"
then sprite #123 will be that parallax sky set
for a more accurate answer, ask Fox
This post has been edited by Forge: 17 November 2019 - 06:00 PM
#3 Posted 17 November 2019 - 08:55 PM
There is a "multipsky" def token that allows you to define what you need. There are examples in the TM mod. Otherwise look at defs.cpp in the engine for the syntax and common.cpp in duke3d for what the defaults are for the hardcoded skies.
This is for OpenGL cubemap skies, not classic-compatible paper skies.
Forge, on 17 November 2019 - 05:56 PM, said:
defineskybox 123 0 0 "directory/filename_south.jpg" "directory/filename_west.jpg" "directory/filename_north.jpg" "directory/filename_east.jpg" "directory/filename_up.jpg" "directory/filename_down.jpg"
This is for OpenGL cubemap skies, not classic-compatible paper skies.
Share this topic:
Page 1 of 1