Textured Polygons for All!

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Jasoco
Inner party member
Posts: 3596
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Textured Polygons for All!

Post by Jasoco » Mon May 13, 2013 8:24 pm

Ref wrote:I'm afraid that Love 0.9 is just too fluid at this point for me to keep up with (when changes are made daily).
Will wait further coding until things stablize and an official release is made.
Will continue to monitor your work to get some insite as to how things work & what needs to be updated.
Best!

Edit: So couldn't resist! With the "old" version of Love 0.9, the conversion of my rotating textured cube was a snap.
Would post code but no assurance that "newer" versions of Love 0.9 would require furthe modifications.
Ill pit this feature on the back burner until 9 is more ready. Shame because that cube is exactly hat I am looking for.

User avatar
Ref
Party member
Posts: 646
Joined: Wed May 02, 2012 11:05 pm

Re: Textured Polygons for All!

Post by Ref » Mon May 13, 2013 11:58 pm

Maybe you can get my code to work if you hatched-out some of the non-essential stuff & rename some of the other.
Love 0.9.0 really has a lot of interesting new features!
Attachments
texturedCube9.love
textured cube modified for Love 0.9.0
(610.93 KiB) Downloaded 176 times

User avatar
Ref
Party member
Posts: 646
Joined: Wed May 02, 2012 11:05 pm

Re: Textured Polygons for All!

Post by Ref » Fri May 17, 2013 2:32 pm

Trying to understand what's going on with the transition from Love 0.8 to 0.9.
How will pixel effects be performed after newPixelEffect is removed and all we have is newGeometry (pixel shader vs vertex shader)?
Geometry is great for texturing and coloring geometries but how will sceen lighting be done?

User avatar
bartbes
Sex machine
Posts: 4867
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Textured Polygons for All!

Post by bartbes » Fri May 17, 2013 3:11 pm

They are still supported, they're just named Shaders, and vertex shaders have also been added.
Cowardly acts and the eating of birds must not be the deeds of a Hero of Storms.

User avatar
Ref
Party member
Posts: 646
Joined: Wed May 02, 2012 11:05 pm

Re: Textured Polygons for All!

Post by Ref » Fri May 17, 2013 4:02 pm

Sure will be interesting to see how!
Got any simple examples.
Would like to add lighting to my rotating (textured) cube.
Edit:
Sure would think I'd read my own posts and look at my own code.
Sorry for this post.
Problem now is that the effect is applied to each textured face and not the screen.
Looks like I'll have to draw the textured cube to a canvas and then apply lighting to the canvas.
More fun.
Edit: Yup! That did it. Draw to canvas and the apply Shader to canvas.
Any more recent Love 0.9.0 builds for windows?
Attachments
texturedCube.jpg
Cube with lighting
texturedCube.jpg (29.77 KiB) Viewed 1924 times
Last edited by Ref on Fri May 17, 2013 5:45 pm, edited 1 time in total.

User avatar
slime
Solid Snayke
Posts: 2715
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Textured Polygons for All!

Post by slime » Fri May 17, 2013 5:29 pm

Windows builds are regularly uploaded by Boolsheet to the "Branches" section here: https://bitbucket.org/Boolsheet/love_winbin/downloads

User avatar
Jasoco
Inner party member
Posts: 3596
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Textured Polygons for All!

Post by Jasoco » Sat May 18, 2013 12:28 am

Ref wrote:Sure will be interesting to see how!
Got any simple examples.
Would like to add lighting to my rotating (textured) cube.
Edit:
Sure would think I'd read my own posts and look at my own code.
Sorry for this post.
Problem now is that the effect is applied to each textured face and not the screen.
Looks like I'll have to draw the textured cube to a canvas and then apply lighting to the canvas.
More fun.
Edit: Yup! That did it. Draw to canvas and the apply Shader to canvas.
Any more recent Love 0.9.0 builds for windows?
I like it. Well, that there's no noticeable distortion in the image. Exactly what I'm going to need for my project.

What are the speed differences if you were to say draw about 1000 Geometry polygons vs. 1000 normally drawn polygons? This is what I'm most interested in.

User avatar
slime
Solid Snayke
Posts: 2715
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Textured Polygons for All!

Post by slime » Sat May 18, 2013 12:32 am

Jasoco wrote:What are the speed differences if you were to say draw about 1000 Geometry polygons vs. 1000 normally drawn polygons? This is what I'm most interested in.
Creating Geometries every frame will be less efficient than drawing the same ones without re-creation. This is another advantage of using the vertex shader for 3D projection: polygons and the projection matrix are decoupled - although Geometries are still limited to convex polygons (in terms of 2d space.)

User avatar
Jasoco
Inner party member
Posts: 3596
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Textured Polygons for All!

Post by Jasoco » Sat May 18, 2013 1:15 am

slime wrote:
Jasoco wrote:What are the speed differences if you were to say draw about 1000 Geometry polygons vs. 1000 normally drawn polygons? This is what I'm most interested in.
Creating Geometries every frame will be less efficient than drawing the same ones without re-creation. This is another advantage of using the vertex shader for 3D projection: polygons and the projection matrix are decoupled - although Geometries are still limited to convex polygons (in terms of 2d space.)
I'm talking about whatever method Ref is using above. I want to know how much of an impact it has on speed if you were to draw say a hundred of those cubes with textures vs. a hundred flat shaded polygons.

ColourTheory
Prole
Posts: 11
Joined: Tue Jun 05, 2012 8:27 pm

Re: Textured Polygons for All!

Post by ColourTheory » Wed May 22, 2013 3:05 am

Woah ROBLOX

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests