The amazing triangle drawer!

Truecolor ZDoom with extra features and some unofficial/beta GZDoom features.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Libs (Win)] [Repo] [Bugs&Suggestions]

Moderators: Rachael, dpJudas

dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: The amazing triangle drawer!

Post by dpJudas »

What is the difference between normal BSP nodes and GL BSP nodes? Right now the problem with removing shearing is that all the current clipping is based on always being axis aligned.

Rendering models will probably be the best use case for the triangle drawer. Maybe with luck Eruanna will feel inspired to add this once the triangle drawer is ready. :)
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: The amazing triangle drawer!

Post by Graf Zahl »

GL nodes contain closed subsectors so that they can be drawn with a polygonal renderer. Normal nodes contain open subsectors where only the parts that belong to a linedef contain actual segs. For software rendering that is enough but a hardware renderer needs the added info, the textured automap, too.
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: The amazing triangle drawer!

Post by dpJudas »

This info is needed to draw the floor and ceiling, right? Or is there more to it?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: The amazing triangle drawer!

Post by Graf Zahl »

No. GZDoom also uses it to traverse subsectors for dynamic lights but that can be done differently if required.
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: The amazing triangle drawer!

Post by dpJudas »

Thanks for the info. Looking at the code I can see that zdoom already generates them on the fly if the renderer's RequireGLNodes() returns true. That's nice to know. :)
User avatar
Rachael
Developer
Developer
Posts: 3639
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael »

Eruanna wrote: I don't know what my week looks like, this week
On this little topic, I have absolutely no hope to have adequate time to sit down and do this for the next two months. Some people don't have *ANY* clue what you mean when you tell them "respect my time" - they refuse to do it and put you on their schedule. That being said, my schedule for the next two months is completely unpredictable. By that time, I don't know if I'll still have the motivation to do this. :( Though I may pick it up again, time will tell...
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: The amazing triangle drawer!

Post by dpJudas »

No worries, there's no obligation to do any of this. It is just a hobby. My triangle stuff is mostly just toying around anyway - might never amount to a pull request in the long run. We'll see. :)
User avatar
Rachael
Developer
Developer
Posts: 3639
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael »

Amazing indeed. I saw what you just did there. :D

I am impressed. XD >_>
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: The amazing triangle drawer!

Post by dpJudas »

Haha, I'm assuming you're referring to my latest commit. I didn't plan that post to align so nicely with the commit, I promise. :D
Talon1024

Re: The amazing triangle drawer!

Post by Talon1024 »

Is this triangle drawer going to be used to draw walls and flats to make true freelook a thing for the software renderer?
User avatar
Rachael
Developer
Developer
Posts: 3639
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael »

I am amazed with what I see so far. :)
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: The amazing triangle drawer!

Post by dpJudas »

Thanks. :) It is a shame that clipping bug in the triangle drawer makes those hall of mirrors. If that bug wasn't there I'd have made some screenshots. :D

@Talon1024: toying with it at the moment actually, but a fully featured version is a lot of work. Mostly just for fun right now. :)
User avatar
Rachael
Developer
Developer
Posts: 3639
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael »

I've been trying to search the code for the freelook limits but haven't had any luck. If I knew where to look, though, I'd have that turned off so you can get full 90-to-90 up and down.

There's always someplace one can look, though - am trying to search that now. :)
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: The amazing triangle drawer!

Post by dpJudas »

It must be there somewhere, since GZDoom activates it. :) Maybe it is controlled by vid_renderer, directly, or indirectly via FRenderer. Just guessing tho.

I really really need to find that clipping bug. It will probably just get even worse if you look straight into the ceiling!
User avatar
Rachael
Developer
Developer
Posts: 3639
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael »

It appears to be a class function "GetMaxViewPitch" - if I can hack that for the software renderer, then it should finally be possible to have full pitch control. :)

I'll toy around with this while you tackle the clipping bug. Hope to have this done for you quickly. :)
Locked

Return to “QZDoom”