[PLUGIN] Texture Setter

Completed plugins, behaviors and effects.

Post » Sun Jun 19, 2011 5:51 am

Texture Setter 1.0
http://dl.dropbox.com/u/5426011/plugins/TexSet.zip

This plugin allows one object to use the texture of another. It does not copy the image like ImageManipulator does, it just reuses the same texture. This results in [u:x3n03ei8]instant[/u:x3n03ei8] texture changes.

Here are some examples of the possible use of this object:
http://dl.dropbox.com/u/5426011/plugins ... mples2.zip

animated3dobj.cap
Animated textures for the 3dobject anyone?

draw3dobj.cap
By giving the 3dobject the texture of a canvas, you can draw your own texture.

coolcubes.cap
Using part of the display as a texture.

pixelscale.cap
Crisp 2x pixel scaling method.


Some Notes:
The 3dbox object does not work with this plug.
Also you will get a runtime error if you use any object that doesn't have a texture as a parameter.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Sun Jun 19, 2011 6:39 am

That's awesome, thank you.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Sun Jun 19, 2011 8:24 am

Cool, just made a kind of a hd minimap, and it worked pretty good.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun Jun 19, 2011 9:33 am

Forgive me for asking before checking it out myself, but I'm quite curious: does the plugin also grab parts of texture? Think tileset or texture atlas.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Jun 19, 2011 12:08 pm

Wow ! Animated textures on 3d objects......just had to cancel my day to test this out. :oops:
B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296

Post » Sun Jun 19, 2011 12:32 pm

Wow!!! :D Now i can do animated 3d billboards for that topdown shooter i was working on.Thank you very much.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Sun Jun 19, 2011 3:36 pm

This is awesome R0j0hound, nice work! :D
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Sun Jun 19, 2011 4:40 pm

Question, i've been trying to recreate your examples "pixelscale" and "coolcubes" and it seems that the effect of sprite showing texture from canvas works only when there are objects with additive efects on the lowest layer. Just spend half an hour trying to figure it out why it shows me only white fill (in canvas and sprite) until i've noticed your clouds have additive effect.

Can you please explain why is that neccesery?
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sun Jun 19, 2011 4:53 pm

[quote:39jatz65]Forgive me for asking before checking it out myself, but I'm quite curious: does the plugin also grab parts of texture? Think tileset or texture atlas.[/quote:39jatz65]
No, it just uses the entire texture.

[quote:39jatz65]Question, i've been trying to recreate your examples "pixelscale" and "coolcubes" and it seems that the effect of sprite showing texture from canvas works only when there are objects with additive efects on the lowest layer. Just spend half an hour trying to figure it out why it shows me only white fill (in canvas and sprite) until i've noticed your clouds have additive effect.
[/quote:39jatz65]I don't know the reason that a shader is needed. It looks like at least 1 is needed though. You can give a shader to just the canvas object and it will work.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Sun Jun 19, 2011 5:42 pm

[quote="shinkan":v85r0lu6]Question, i've been trying to recreate your examples "pixelscale" and "coolcubes" and it seems that the effect of sprite showing texture from canvas works only when there are objects with additive efects on the lowest layer. Just spend half an hour trying to figure it out why it shows me only white fill (in canvas and sprite) until i've noticed your clouds have additive effect.

Can you please explain why is that neccesery?[/quote:v85r0lu6]

Try setting the layer properties to "force own texture"
You might have to change the inheritance on some as well.

Also, might check the wording Rojo. The action reads kind of opposite of what you would expect.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Next

Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests