Welcome! Log In Create A New Profile

Advanced

libwiisprite - BindTexture()

Posted by WiiPhlex 
libwiisprite - BindTexture()
August 01, 2008 06:10AM
I noticed this in libwiisprite documentation while i was reading through it:

Quote
libwiisprite
void wsp::Image::BindTexture ( bool bilinear = true )

Used to select this image for the next texturing process. Most of the time you won't gonna use this.

Parameters:
bilinear Turns on bilinear filtering.

Does this mean that the default is point sampling or trilinear texture filtering?
Re: libwiisprite - BindTexture()
August 01, 2008 03:51PM
I tried it, and I saw no difference in rendering... maybe I will make another try sometimes.
Re: libwiisprite - BindTexture()
August 02, 2008 02:52AM
Have you tried applying textures to 3D primitives?
Re: libwiisprite - BindTexture()
August 02, 2008 08:40AM
Hmm, missing the clue... you mean? What has libwiisprite to do with 3D?

I use Blender, and therefore, I know the difference between bilinair rendering and without it.

_________________________________
Simplicity... can do complex things.
Singularity... is simple and complex at once.
Re: libwiisprite - BindTexture()
August 02, 2008 08:51AM
You can use libwiisprite with 3D if you have a lot of time and patience, but don't worry about that. But now that I think about it, there is little need for changing the sample rate on a 2D game, so now I don't see why they would even do that.



Edited 1 time(s). Last edit at 08/02/2008 09:00AM by WiiPhlex.
Re: libwiisprite - BindTexture()
August 19, 2008 06:03AM
Ohk, I finally (by accident) found out what this function is here for. It's to do with the TiledLayer class. Trilinear filtering is a 3D thing, so when you zoom, it will filter the pixels and make them look nice on the screen, sort of like 3D, although this comes at some cost. By default, a TiledLayer object has this disabled as it does not zoom, so theres no point in filtering it and so this makes it look nice and make it run faster.... just incase anyone was interested.
Re: libwiisprite - BindTexture()
August 19, 2008 02:40PM
So... attaching an image to an tiled layer instead of an sprite is faster? If you don't have to zoom.
Re: libwiisprite - BindTexture()
August 19, 2008 02:44PM
I should imagine so, just make sure you don't make more than 1 cell.
Re: libwiisprite - BindTexture()
August 19, 2008 04:06PM
Yeah... Maybe Chaosteil needs to rewrite Sprite, or at least at an nonzoom non trilinear option.
Re: libwiisprite - BindTexture()
August 20, 2008 12:30AM
I can put that forward to him, we talk most days.
Sorry, only registered users may post in this forum.

Click here to login