Duke4.net Forums: How to make a multi-sprite parallax ? - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to make a multi-sprite parallax ?

User is offline   Seb Luca 

#1

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 :o

Attached Image: Sans titre-1.png



This post has been edited by Seb Luca: 17 November 2019 - 01:45 AM

0

User is offline   Forge 

  • Speaker of the Outhouse

#2

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

This post has been edited by Forge: 17 November 2019 - 06:00 PM

1

User is offline   Hendricks266 

  • Weaponized Autism

  #3

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.

View PostForge, 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.
1

User is offline   Seb Luca 

#4

Thanks to you, guys ; I will explore these possibilities :o
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options