Search found 98 matches

by Max Power
Wed Apr 09, 2014 12:54 pm
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

A coincidence? From my point of view I am using the nodes as properly as I possibly can. The meshes are not meant to be instanced. There is one mesh per voxel-object. The mesh can extend over tens of thousands of individual voxels, containing several times this amount of faces. I have to dynamically...
by Max Power
Wed Apr 09, 2014 11:31 am
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

I don't know why I still bother, if nothing runs or compiles outside of my machine, but I don't feel like giving up just yet, so I re-worked the example again: http://s000.tinyupload.com/index.php?file_id=98038607918883415249 You can now choose between standard and custom material for the comparison...
by Max Power
Wed Apr 09, 2014 10:30 am
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

Everything compiles just fine on my mashine. There's just a problem with the D3D-shader, because it seems to refuse working with the variable names I gave it and spams the console with warnings, even though it's operating (at least here, it is). I wrote it last night and wasn't able to fix it yet. H...
by Max Power
Tue Apr 08, 2014 7:02 pm
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

So, can anyone tell me what I need to do to get my transparent custom-shader materials behave like standard transparent materials. It's kind of a big deal. It's not just the mesh-buffers inside a mesh that get messed up, I also sometimes can't see other transparent scene-nodes behind these materials...
by Max Power
Thu Apr 03, 2014 9:36 am
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

To use dynamic lighting you have to create the shader to work off a light, most likely a single point light. Then you create the light in Irrlicht and pass that light as the light to use in your shader callback. So that means I have to get all dynamic lights from the driver inside the shader-callba...
by Max Power
Thu Apr 03, 2014 9:02 am
Forum: Beginners Help
Topic: Light & Shadows with huge meshes
Replies: 0
Views: 536

Light & Shadows with huge meshes

I need help with shadows. I am (desperately) looking for a way to simulate real-time shadows with my meshes. It's mostly self-shadowing. What I'm doing, at least the technical side, is something along the terms of space engineers: large dynamic objects, serving as environments, have a voxel-like gri...
by Max Power
Tue Apr 01, 2014 7:08 pm
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

Hmm I wasn't able to run your program what are you compiling under? Visual Studio 10. Maybe I didn't choose the right settings, but the source is in the archive, too. I know now that the problem occurs with multiple meshBuffers of the same node, not with different nodes. Apart from that it's like I...
by Max Power
Mon Mar 31, 2014 11:06 pm
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

I made the test scenario and put everything into one archive: http://s000.tinyupload.com/index.php?file_id=08661783741690015142 I know now that the problem occurs with multiple meshBuffers of the same node, not with different nodes. Apart from that it's like I suspected: the order of the meshBuffers...
by Max Power
Mon Mar 31, 2014 8:55 am
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

Do you need complete compilable program code?...

Or is the shader enough?
by Max Power
Sun Mar 30, 2014 3:06 pm
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

Changing BlendOperation to EBO_ADD doesn't seem to do anything. I think it has to do with some internal order though. If I create 3 materials with my custom transparent type and use 3 different textures, I can always see the material through itself. Other than that, there is some kind of A > B > C r...
by Max Power
Sun Mar 30, 2014 1:36 am
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

Sorry for spamming the place with questions lately, but I am currently experimenting a lot with the engine's features and getting a bit excited about how easily you can create all kinds of effects :) I'd really like to do some post-processing. I thought about passing a screen-sized alpha-channel tex...
by Max Power
Sat Mar 29, 2014 9:34 pm
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

Hmm, ok. Thanks for the hint. Must be something else then. Sometimes I can see one transparent material through the other and sometimes I can't. Haven't made sense of it yet. I also noticed that my transparent custom shaders sometimes become intransparent for a second or two, but I think that only h...
by Max Power
Sat Mar 29, 2014 9:25 am
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

And there is something else now: The solid material I made works well (except for the lighting, I haven't done this yet), but the transparent one - no matter what kind of transparency I use as base material - doesn't behave like it should. For instance, unlike with the standard materials, there is n...
by Max Power
Fri Mar 28, 2014 9:45 pm
Forum: Beginners Help
Topic: Shader Basics
Replies: 28
Views: 2658

Re: Shader Basics

One more simple question: how do I rewrite the GLSL vertex shader from the shader tutorial to use normal global dynamic lighting like any other material?
by Max Power
Fri Mar 28, 2014 12:54 pm
Forum: Beginners Help
Topic: need specific combination of material properties
Replies: 7
Views: 632

Re: need specific combination of material properties

I use texCoord2 now and it's working well. Thanks :D