FIXED: Flat Sprites Overhauled

Moderator: Graf Zahl

User avatar
Rachael
Developer
Developer
Posts: 3606
Joined: Sat May 13, 2006 10:30

Re: Flat Sprites Overhauled

Post by Rachael » Sat Sep 17, 2016 1:06

Major Cooke wrote:(Also, a dev tag? Shocking!)
https://github.com/coelckers/gzdoom/com ... MajorCooke

This isn't the right thread to discuss this - this is - but I figured I'd just mention it here.

It's not so much the number of submissions - but also that they have actually done some sort of notable improvement in some way.
Spoiler: Zen Sarcasm

Major Cooke
Developer
Developer
Posts: 239
Joined: Wed Mar 04, 2009 19:25

Re: Flat Sprites Overhauled

Post by Major Cooke » Sat Sep 17, 2016 1:10

Heh, yeah I know but still, I thought to have the official developer title it required actually having like what Graf has to zdoom itself: the ability to directly push code to it.

-----

While this is something of a start, it's far from correct and still needs plenty of changing. Any ideas here would be welcome.

Code: Select all

				DVector3 pos = { x, y, z };
				DAngle ang = (ViewPos - pos).Angle();
				double ancos = ang.Cos();
				double ansin = ang.Sin();

				x1 = x - (leftfac * ancos - rightfac * ansin);
				x2 = x - (rightfac * ancos + rightfac * ansin);
				y1 = y + (bottomfac * ansin - topfac * ancos);
				y2 = y + (topfac * ansin + topfac * ancos);


Major Cooke
Developer
Developer
Posts: 239
Joined: Wed Mar 04, 2009 19:25

Re: Flat Sprites Overhauled

Post by Major Cooke » Sat Sep 17, 2016 15:36

Image

The thing is, it tilts on the wrong side. This is without any roll in it.

I'll try messing around with your code some more now.

Major Cooke
Developer
Developer
Posts: 239
Joined: Wed Mar 04, 2009 19:25

FIXED: Flat Sprites Overhauled

Post by Major Cooke » Sat Sep 17, 2016 18:11

Here's a fix for the pitch rolling about the wrong axis.

This is the last one. It's finally ready.

User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: FIXED: Flat Sprites Overhauled

Post by Graf Zahl » Sat Sep 17, 2016 19:14

Yeah, I expected something like that. But it's too late for today, I'm doing the release tomorrow.

Major Cooke
Developer
Developer
Posts: 239
Joined: Wed Mar 04, 2009 19:25

Re: FIXED: Flat Sprites Overhauled

Post by Major Cooke » Sat Sep 17, 2016 19:16

Oh you pushed it back a day?

If this stalled it -- my apologies.

User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: FIXED: Flat Sprites Overhauled

Post by Graf Zahl » Sat Sep 17, 2016 19:19

Yes, it was just the flatsprite that stalled it.

User avatar
Tiger
Developer
Developer
Posts: 856
Joined: Thu Feb 25, 2010 3:44
Location: United States

Re: FIXED: Flat Sprites Overhauled

Post by Tiger » Sat Sep 17, 2016 19:21

Graf Zahl wrote:I'm doing the release tomorrow.
Image
Last edited by Tiger on Sat Sep 17, 2016 19:26, edited 1 time in total.
Nicholas "Tiger" Gautier

Major Cooke
Developer
Developer
Posts: 239
Joined: Wed Mar 04, 2009 19:25

Re: FIXED: Flat Sprites Overhauled

Post by Major Cooke » Sat Sep 17, 2016 19:23

@Graf: Sorry about that, a small emergency came up which inevitably forced my attention away from the fixing process.

Still, I'm so glad working on this remake is over with.

@Tiger: You'd look better if you had Puss N Boot's eyes.

User avatar
Tiger
Developer
Developer
Posts: 856
Joined: Thu Feb 25, 2010 3:44
Location: United States

Re: FIXED: Flat Sprites Overhauled

Post by Tiger » Sat Sep 17, 2016 19:26

Major Cooke wrote:@Tiger: You'd look better if you had Puss N Boot's eyes.
Fixed
Nicholas "Tiger" Gautier

Major Cooke
Developer
Developer
Posts: 239
Joined: Wed Mar 04, 2009 19:25

Re: FIXED: Flat Sprites Overhauled

Post by Major Cooke » Sat Sep 17, 2016 19:27

MUUUUUCH much better! Now just pray for Graf being a sucker for pussy eyes. :mrgreen:

ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Re: FIXED: Flat Sprites Overhauled

Post by ibm5155 » Sun Sep 18, 2016 0:12

Do you guys even coffee? heck, all those code reminds me about analytic geometry D:

User avatar
Rachael
Developer
Developer
Posts: 3606
Joined: Sat May 13, 2006 10:30

Re: FIXED: Flat Sprites Overhauled

Post by Rachael » Sun Sep 18, 2016 0:37

ibm5155 wrote:Do you guys even coffee? heck, all those code reminds me about analytic geometry D:
Only reminds you of?

What do you think 3D is?
Spoiler: Zen Sarcasm

Major Cooke
Developer
Developer
Posts: 239
Joined: Wed Mar 04, 2009 19:25

Re: FIXED: Flat Sprites Overhauled

Post by Major Cooke » Sun Sep 18, 2016 3:28

This can be closed by the way. Not sure why it's still open. :P

Locked

Return to “Closed Feature Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest