3D Backgrounds for Touhou-like Bullet Hell Shmup

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: 3D Backgrounds for Touhou-like Bullet Hell Shmup

Post by slime »

Jasoco wrote: Fri Apr 07, 2017 5:26 am Are you just saying that things like circles, rectangles and images will just have a third Z parameter?
No, but you can already reposition the Z coordinates (and even change the 3D rotation) of 2D primitives by using a vertex shader.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: 3D Backgrounds for Touhou-like Bullet Hell Shmup

Post by raidho36 »

Jasoco wrote: Fri Apr 07, 2017 5:26 am Are you just saying that things like circles, rectangles and images will just have a third Z parameter?
If you use color blending, that automatically makes depth testing pointless. That's because you produce output color by blending rendered color with pre-existing color, and depth information gets ignored. How would it even make sense, if objects wouldn't show up behind transparent things?

Because of the way it works, depth testing can only be used to render solid polygons. But at that specific task, depth testing is an exceedingly handy tool.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 6 guests