This is getting annoying

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: This is getting annoying

Post by thanhle »

Maybe you want to create a project announcement for this water scenenode/shader in the project announcement forum.

That looks great. It almost looks like real water.

Request on your to do list:
1) update the water color and transparency based on the depth of the water/floor.

Goodluck
Thanh
Destructavator
Posts: 40
Joined: Sat Feb 06, 2010 9:00 pm
Location: Ohio, USA

Re: This is getting annoying

Post by Destructavator »

It does look good now, yes.

If I may ask, what was the issue with the matrix math? I'm asking because I'd think the rules I explained in this thread for working with a matrix should have applied to *both* the inverted world matrix *and* the WorldViewProjection matrices you were passing to the shader. Looking back at your post after I explained the matrix stuff I see you mentioned changing the inverted world matrix like how I suggested, although you didn't mention anything about fixing the multiplication for how you get the WorldViewProjection matrix at the same time. I had assumed you tried what I suggested for both, not just for getting the inverted world matrix. If this assumption is wrong, I'm sorry.

Also, If anything I posted about the matrix stuff and what I was suggesting wasn't clear, or was misinterpreted, that's my fault, and I apologize.

So what is the working matrix code that fixed everything?

I'm not trying to be nasty or rub anything in when I ask this, it's just that if the problem all along was really matrix-related, I'm curious to know what the working, fixed result would be, because for OpenGL what I suggested works perfectly (rules applied to *both*, actually, *all* matrix math), but if the rules are different for a DirectX shader I'm wondering what those different rules are and how they are different.

Again, It's my fault if I didn't explain any suggestion clearly, and I'm glad to see you got it working anyways! The result looks very good!
- - - -
"Destructavator" Dave: Developer of OS GPL VST "ScorchCrafter" Audio Plug-ins, contributer to UFO AI, Day Job: Guitar Luthier (Customize musical instruments, repainting w/ custom artwork, graphics, logos, decals, etc.)
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: This is getting annoying

Post by The_Glitch »

I think your taking it to serious bud. Yeah I forgot what the exact fix was but I set all my other data back to the original and tinkered with the matrices. And I discovered the water being shown all distorted depending on how you rotated the camera. From that point I changed around there orders and I believe I even removed one and got it working. None of the other stuff was wrong though.
Christi258
Posts: 62
Joined: Wed Feb 06, 2013 12:11 pm

Re: This is getting annoying

Post by Christi258 »

When is your water ready? I wanna see it
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: This is getting annoying

Post by The_Glitch »

Yeah I've added transparency to the water. I'm gonna test it in one of my levels and see how it fairs and move forward from there.
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: This is getting annoying

Post by The_Glitch »

Image

Image
Finer Spec "not always better though"

Added transparency. And finer controls over color, and specular lighting and other things.
Destructavator
Posts: 40
Joined: Sat Feb 06, 2010 9:00 pm
Location: Ohio, USA

Re: This is getting annoying

Post by Destructavator »

Hey, nice!

Just one minor issue: If the forum software allows it, I'd suggest you change the title of the thread, to something such as, gosh, perhaps "This is getting real cool-looking" or something? :D
- - - -
"Destructavator" Dave: Developer of OS GPL VST "ScorchCrafter" Audio Plug-ins, contributer to UFO AI, Day Job: Guitar Luthier (Customize musical instruments, repainting w/ custom artwork, graphics, logos, decals, etc.)
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: This is getting annoying

Post by The_Glitch »

I don't think you can once you post it or a little time after. I'm going to make a project announcement soon. And make a version for opengl.
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: This is getting annoying

Post by The_Glitch »

Image
Beavercreek Halo 2 "Microsoft/ Bungie"

Screenshot for this particular level turns out darker than it's suppose to but o well.
Post Reply