Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: 1 2 [3] 4 5 6
  Print  
Author Topic: Zak's Ocean Shader Freely Downloadable [6.5]  (Read 149398 times)
Waterman
Moderator
Community Member
*****
Posts: 1159


« Reply #40 on: May 23, 2006, 08:31:38 AM »

Quote from: "Mietze"
There cant be continous water, as you may know.

Of course there can be. For rendering purposes, you could well constuct the relevant dynamic maps out of several landscape-bound static ones. Or page. You just decide when it's fake time.
Logged

Things should be described as simply as possible - but not simpler [A. Einstein]
Mietze
Community Member
*
Posts: 415

Pleeease, don't let it crash!


WWW
« Reply #41 on: May 23, 2006, 09:17:51 AM »

Quote from: "Waterman"
Quote from: "Mietze"
There cant be continous water, as you may know.

Of course there can be. For rendering purposes, you could well constuct the relevant dynamic maps out of several landscape-bound static ones. Or page. You just decide when it's fake time.
Indeed, you hit the point: fake. Wink 'Real' continous water with a high scaled plane isnt a good solution  :wink:
Logged

Check out my blog at www.e-studioz.de - The finest in gross trash Wink
Mietze
Community Member
*
Posts: 415

Pleeease, don't let it crash!


WWW
« Reply #42 on: May 24, 2006, 08:19:55 AM »

Sry for the doublepost, but i finally implemented it into my editor. You are now able to generate the diffusemap by specific colors and transparency per click - and the result is beautiful Smiley

http://www.e-studioz.de/index.php?page=project&subpage=media&action=show&id=30
(Click on the image to expand its size)
Logged

Check out my blog at www.e-studioz.de - The finest in gross trash Wink
J
Customers
Community Member
*****
Posts: 53


« Reply #43 on: May 25, 2006, 06:40:21 AM »

hi there,

first of all, this is really cool stuff! respect to Zaknafein, truly suitable to show what tv can do! i'd like to convert this demo to c++ but have some troubles with overloaded operators:

(all snippets are part of the 'updateWater' function from the file 'Water.cs')


QUESTION 1

variable types (in c++):

Code:
cTV_3DMATRIX reflView = gTVCam->GetRotationMatrix();
cTV_3DMATRIX* m_reflectMat;


the c# source says:
Code:
reflView *= m_reflectMat;


does the following line do the same?

Code:
gTVMathLib->TVMatrixMultiply(&reflView, &reflView, m_reflectMat);


(i tried to multiply two non-pointer cTV_3DMATRIX variables but the overloaded * operator does not work)




QUESTION 2

c# source:
Code:
TV_4DVECTOR clipPlane = new TV_4DVECTOR();
...
TV_4DVECTOR q;
...
TV_4DVECTOR scaledPlaneVector = clipPlane * (1.0f / (clipPlane * q));



my c++ converting attempt due to the lack of overloaded operators (or due to my lack of knowledge how to use these..):


Code:
cTV_4DVECTOR clipPlane;
cTV_4DVECTOR q;
cTV_4DVECTOR scaledPlaneVector;

q.x = sign(clipPlane.x) / culledProj.m11;
q.y = sign(clipPlane.y) / culledProj.m22;
q.z = 1.0f;
q.w = (1.0f - culledProj.m33) / culledProj.m43;

scaledPlaneVector.x = clipPlane.x * (1.0f / (clipPlane.x * q.x));
scaledPlaneVector.y = clipPlane.y * (1.0f / (clipPlane.y * q.y));
scaledPlaneVector.z = clipPlane.z * (1.0f / (clipPlane.z * q.z));
scaledPlaneVector.w = clipPlane.w * (1.0f / (clipPlane.w * q.w));



does this c++ code do the same as the c# source? or is the * operator an alias for cross or dot product?


thanks in advance for shedding any light on this
cheers
j
Logged
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #44 on: May 27, 2006, 10:58:31 PM »

@J :
I don't know if the operators are overloaded in C++, since I haven't used TV3D with C++ and I don't really know C++ anyway Tongue

But as far as I can tell...
The first code part (using TVMatrixMultiply) looks good.
And there is no overloaded operator that replaces dot nor cross product. Still have to pass through TVMathLib for that. So the second code part looks quite right as well.
Logged

J
Customers
Community Member
*****
Posts: 53


« Reply #45 on: May 28, 2006, 05:31:33 AM »

@zaknafein:

thanks for the info! unfortunately, i still get only a dark blue plane: no reflections, no waves, no nothing.. i guess i have to learn how to use render surfaces / shader stuff because this ocean shader really rocks!!

where are the c++ people? i converted the c# code line per line to c++ but it does not work. textures / shaders are all loaded correctly..

thanks again,
cheers
j
Logged
Solar
Community Member
*
Posts: 34


« Reply #46 on: July 12, 2006, 09:32:25 AM »

like we say in dutch at The Hague: Tering, das vet!!!
Translation: *curse* , this looks awesome!!!
Logged

Netherlands|VB6|www.nl-clans.org
Dragoon
Community Member
*
Posts: 414


« Reply #47 on: July 13, 2006, 05:45:23 AM »

or at the veluwe (also in the Netherlands): dat is godse vet!!
wich is translated to something like: that's godlike!!
Logged

TV3D doc (6.3):                           http://www.truevision3d.com/tvdna/
Wiki Tuts + 6.5 community doc:   http://wiki.truevision3d.com/
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #48 on: July 31, 2006, 11:24:44 PM »

Small updates, bugfixes and added features. See first post for details.
Logged

pizzayoyo
Customers
Community Member
*****
Posts: 1423


WWW
« Reply #49 on: July 31, 2006, 11:48:55 PM »

Hmm... While running the executeable I am getting a System.MissingMethodException. Maybe I need to download C# to see whats wrong.

Btw, i have MTV3D65.dll and DXD9X.dll in the folder.
Logged

Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #50 on: August 01, 2006, 10:06:58 AM »

I don't know man, I just tested it at work on a clean machine, with the latest MTV3D65 and D3DX9_29 in the executable directory. No problem...  :?
Logged

sigi
Customers
Community Member
*****
Posts: 16


« Reply #51 on: August 01, 2006, 10:11:44 AM »

Works without Probs here.
Thank You, great work.   Smiley
Logged
nikko
Community Member
*
Posts: 11


« Reply #52 on: August 24, 2006, 05:38:18 AM »

Do you want to host your files on a speed server? Because your link is damn slow currently!
I host them on my decicated server.


Nikko
Logged
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #53 on: August 24, 2006, 08:17:49 AM »

I would like that yes... because the current host is my home machine on a humble ADSL. If you want to host, I'll place the link on the front page.
Logged

nikko
Community Member
*
Posts: 11


« Reply #54 on: August 24, 2006, 09:24:14 AM »

It is maybe a stupid question but when I run water.exe from the release directory I get a "file not found" exception.
Where this exe should be copied?
Logged
Rynus_Rein
Community Member
*
Posts: 1008


« Reply #55 on: August 24, 2006, 09:38:39 AM »

do you've got 6.5?
Logged

Rynus Rein
Current Project: MapX Live, Society3D
nikko
Community Member
*
Posts: 11


« Reply #56 on: August 24, 2006, 09:52:09 AM »

yes!

Today. But I can't run any examples. I always have this kind of exceptions. I've copied the DLLs in the system directory, but no way.

Nikko
Logged
nikko
Community Member
*
Posts: 11


« Reply #57 on: August 24, 2006, 10:08:39 AM »

Ok it works now... was just a matter of tweaking things.
Logged
Shadowsong
Customers
Community Member
*****
Posts: 328


« Reply #58 on: November 07, 2006, 09:23:47 AM »

Hm I tried to translate this to Vb .NET but it just renders a dark green-blue plane. The landscape renders fine. But the water is just an empty plane. no reflections, no shading, no movement.

What about translating this into VB.NET Zak? Your other demos were written in VB. too.
Logged
Raul
Customers
Community Member
*****
Posts: 550

I like games.


WWW
« Reply #59 on: November 07, 2006, 11:05:51 AM »

I will like to test it but I do not have 6.5 Sad and it does not work ... Sad I like the shots Cheesy
Logged

Pages: 1 2 [3] 4 5 6
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks