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 » Sun Nov 06, 2016 22:28

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 » Sun Nov 06, 2016 23:21

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 » Sun Nov 06, 2016 23:48

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 » Mon Nov 07, 2016 0:06

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 » Mon Nov 07, 2016 0:14

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: 3618
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael » Mon Nov 07, 2016 0:29

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...
Spoiler: Zen Sarcasm

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

Re: The amazing triangle drawer!

Post by dpJudas » Mon Nov 07, 2016 3:54

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: 3618
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael » Mon Nov 07, 2016 10:25

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

I am impressed. XD >_>
Spoiler: Zen Sarcasm

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

Re: The amazing triangle drawer!

Post by dpJudas » Mon Nov 07, 2016 11:01

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 » Tue Nov 08, 2016 3:14

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: 3618
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael » Tue Nov 08, 2016 4:03

I am amazed with what I see so far. :)
Spoiler: Zen Sarcasm

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

Re: The amazing triangle drawer!

Post by dpJudas » Tue Nov 08, 2016 6:14

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: 3618
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael » Tue Nov 08, 2016 6:25

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. :)
Spoiler: Zen Sarcasm

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

Re: The amazing triangle drawer!

Post by dpJudas » Tue Nov 08, 2016 6:30

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: 3618
Joined: Sat May 13, 2006 10:30

Re: The amazing triangle drawer!

Post by Rachael » Tue Nov 08, 2016 6:33

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. :)
Spoiler: Zen Sarcasm

Locked

Return to “QZDoom”