Textured Polygons for All!

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
scutheotaku
Party member
Posts: 235
Joined: Sat Dec 15, 2012 6:54 am

Re: Textured Polygons for All!

Post by scutheotaku »

Ref wrote:
xXxMoNkEyMaNxXx wrote:The virtual machine is obviously causing problems, because there are no problems for me on Windows 7.
The plot thickens!
I'm on Windows 7 and have Jasoco's problems.
Perhaps it's a driver issue?
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Textured Polygons for All!

Post by Jasoco »

Most likely all the problems we're having with this are driver issues. Thing is xXxMoNkEyMaNxXx designs it to work on his system, and it happens to work fine on mine too, in OS X, but then as you branch out you get different problems from different systems. It's odd, and I don't know a thing about how to understand the PixelEffect code so I can't even help.

What's your graphics card, Ref?
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Textured Polygons for All!

Post by Ref »

Jasoco wrote: What's your graphics card, Ref?
Not a driver issure on my Windows 7 machine - just a brain issue.
Had an error in my code that I thought caused something like what Jasoco was seeing.
All my test scripts so far have performed exactly as would be expected for xXxMoNkEyMaNxXx's excellent Pixel Effect!
User avatar
xXxMoNkEyMaNxXx
Party member
Posts: 206
Joined: Thu Jan 10, 2013 6:16 am
Location: Canada

Re: Textured Polygons for All!

Post by xXxMoNkEyMaNxXx »

I think that we can assume it's a driver issue, because that would make the most sense. My graphics card: Radeon HD 6870
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Textured Polygons for All!

Post by Ref »

Any chance of a sequel - Textured Triangles fo All?
User avatar
xXxMoNkEyMaNxXx
Party member
Posts: 206
Joined: Thu Jan 10, 2013 6:16 am
Location: Canada

Re: Textured Polygons for All!

Post by xXxMoNkEyMaNxXx »

That would not be able to figure out perspective, it would simply be some linear interpolation. I'm not sure what you'd want it to act like either. Draw me an example of a grid?
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Textured Polygons for All!

Post by Ref »

Look at OpenGL.
All there rendering is done on triangles.
Ofcouuse, they take care of the perspective.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Textured Polygons for All!

Post by Jasoco »

Yeah, I need me some triangles.

The reason OpenGL triangles work is because they're receiving XYZ coordinates. This library is only receiving 2D XY coordinates. In order for a triangle library to work you would either A) need to provide a 4th hidden point to use as reference, or pass a third "depth" coordinate for each X and Y coordinate.
User avatar
xXxMoNkEyMaNxXx
Party member
Posts: 206
Joined: Thu Jan 10, 2013 6:16 am
Location: Canada

Re: Textured Polygons for All!

Post by xXxMoNkEyMaNxXx »

This is exactly what I was trying to say. How do you want me to implement it?
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Textured Polygons for All!

Post by vrld »

Jasoco wrote:The reason OpenGL triangles work is because they're receiving XYZ coordinates.
Sorry, but this is not true. Texture has (almost) nothing to do with perspective.
In addition of screen coordinates, you provide texture coordinates that define how the texture is mapped onto the polygon.

Shameless plug: There is a good chance that there will be support for textured polygons in LÖVE 0.9.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests