Page 7 of 15
Re: Textured Polygons for All!
Posted: Tue Feb 05, 2013 3:26 am
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?
Re: Textured Polygons for All!
Posted: Tue Feb 05, 2013 4:25 am
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?
Re: Textured Polygons for All!
Posted: Tue Feb 05, 2013 2:33 pm
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!
Re: Textured Polygons for All!
Posted: Tue Feb 05, 2013 7:19 pm
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
Re: Textured Polygons for All!
Posted: Mon Feb 11, 2013 9:39 pm
by Ref
Any chance of a sequel - Textured Triangles fo All?
Re: Textured Polygons for All!
Posted: Tue Feb 12, 2013 12:10 am
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?
Re: Textured Polygons for All!
Posted: Tue Feb 12, 2013 3:48 am
by Ref
Look at OpenGL.
All there rendering is done on triangles.
Ofcouuse, they take care of the perspective.
Re: Textured Polygons for All!
Posted: Tue Feb 12, 2013 4:30 am
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.
Re: Textured Polygons for All!
Posted: Tue Feb 12, 2013 5:50 am
by xXxMoNkEyMaNxXx
This is exactly what I was trying to say. How do you want me to implement it?
Re: Textured Polygons for All!
Posted: Tue Feb 12, 2013 10:11 am
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.