Search found 14 matches

by Metalero
Tue Mar 29, 2011 4:29 pm
Forum: Advanced Help
Topic: Blend and shaders
Replies: 5
Views: 729

No, I´m trying to implement some 2D stuff, using 3D. I´m using a shader to mix opacity control, color adding, and an effect called tone, wich is similar to color adding, but calculations are different and adds a Grey component to the texture. Now, I need to set 3 blending options: None: texture is s...
by Metalero
Tue Mar 29, 2011 2:21 am
Forum: Advanced Help
Topic: Blend and shaders
Replies: 5
Views: 729

color=blend*color1+(1.0-blend)*color2 But, how do I get Color2 ? My shader is somethig like : "[... extern variables for color effects...] \ sampler2D tex0; \ \ float4 main( float2 texCoord : TEXCOORD0): COLOR0 \ { \ float4 color = tex2D( tex0, texCoord.xy ); \ [...operations with variables, f...
by Metalero
Tue Mar 29, 2011 12:36 am
Forum: Advanced Help
Topic: Blend and shaders
Replies: 5
Views: 729

Blend and shaders

I am using pixel shader to apply some effects to a material´s texture. Now, I also need to make some blending stuff (addition and substractions) wich involves using a material like EMT_ONETEXTURE_BLEND, but if I use that material, I can´t use my shader The question is: Is there any way to: Combine E...
by Metalero
Fri Mar 18, 2011 1:18 am
Forum: Advanced Help
Topic: Tone, Opacity, and Alpha Channel
Replies: 6
Views: 1759

Well, yes, alpha and opacity it´s the same, but wath I mean is: Alpha chanel -> use alpha data from de image file Opacity -> posibility of varying alpha by code, to make a texture (wich has alpha channel) more or less translucent Tone, is the same as using EMT_LIGHTMAP_ADD meterial type, and vary th...
by Metalero
Thu Mar 17, 2011 11:19 pm
Forum: Advanced Help
Topic: Tone, Opacity, and Alpha Channel
Replies: 6
Views: 1759

Tone, Opacity, and Alpha Channel

Well, I have generally used irrlicht for 2D stuff. And one thing I´ve never tryed to implmente, was Tone, Opacity and Alpha Channel (all in one) in a texture I mean: Tone: add a kind of additive color, composed by : (Red, Green, Blue, Gray) Opacity: total opacity of the texture (like using EMT_TRANS...
by Metalero
Wed Nov 03, 2010 9:25 pm
Forum: Beginners Help
Topic: GUIEnvironment addImage() quesion.
Replies: 6
Views: 1691

You should use driver->draw2DImage() instead, it has 3 (or 4) overloads, and one of them alows you to set the src rect, and the dst rect (and you can add a per vertex color)
by Metalero
Tue Nov 02, 2010 12:05 am
Forum: Advanced Help
Topic: iphone landscape mode
Replies: 3
Views: 1176

I´ve had the same problem... yo can try with this thread http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=39839&highlight=landscape+iphone Where Arcoroc give some code I coudn´t try yet coz of personal bussiness XD, but if it work for you, I´d be glad if you tell me, so when I was able to,...
by Metalero
Thu Oct 28, 2010 8:19 pm
Forum: Beginners Help
Topic: array delete problem
Replies: 9
Views: 640

Use CallsStack to go back to your code (what IDE are you using ?)
by Metalero
Thu Oct 28, 2010 6:43 pm
Forum: Beginners Help
Topic: array delete problem
Replies: 9
Views: 640

I think I had same problem in the past.

Try doing a

Code: Select all

k--;
below the part you erase the array item, coz remember, in this part, the array made samller, but k continue groing up.
by Metalero
Wed Oct 27, 2010 5:10 am
Forum: Beginners Help
Topic: Program in C that can kill people
Replies: 14
Views: 1031

You'd be surprised how many people would do it.
Intersting... Very interesting.... :twisted:
by Metalero
Wed Oct 27, 2010 12:01 am
Forum: Beginners Help
Topic: Program in C that can kill people
Replies: 14
Views: 1031

Or you can render this text:

"Please, take a knife, and cut your jugular with it"
"Your Faithfully [Your Alias]"

And hope the user obey it.
by Metalero
Sun Oct 24, 2010 2:58 pm
Forum: Beginners Help
Topic: 2D coordinates in irrlicht
Replies: 1
Views: 279

The simplest way is that your camera looks at negative Z. It gives you the same system X-Y, used in 2D. Now you have the (0,0) in the middle of the screen, so yo only need to "offset" the position of the camera to (Screen_Width/2, Screen_Height/2). And don´t forget your orthogonal camera´s...
by Metalero
Mon Sep 13, 2010 1:00 pm
Forum: Advanced Help
Topic: Landscape in iPhone
Replies: 3
Views: 1359

That's the problem, I've not ViewController coz' I'm using the template posted here: http://irrlicht.sourceforge.net/phpBB2/ ... e&start=75

Wich hasn't any one, but it use an OGL-ES View
by Metalero
Tue Sep 07, 2010 4:49 pm
Forum: Advanced Help
Topic: Landscape in iPhone
Replies: 3
Views: 1359

Landscape in iPhone

After hours searching... I gave up, and ask for som help I need to make the game I'm developing for thi iPhone to run only in Landscape orientation I tryied adding de UIInterfaceOtientation vaule in the info.plist and adding a viewcontroler (as many tutorial say) but with this... I get an error (som...