Rynus_Rein
Community Member

Posts: 1010
|
 |
« Reply #60 on: November 07, 2006, 01:29:45 PM » |
|
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 I heard a rumour that installing Adobe Reader fixes some kind of problems :/
|
|
|
|
|
Logged
|
Rynus Rein Current Project: MapX Live, Society3D
|
|
|
|
Zaknafein
|
 |
« Reply #61 on: November 07, 2006, 03:03:52 PM » |
|
I don't have the time right now to translate it, but I definitely will some time. Like I said on my blog/webpage, most samples (including this one) will need some updating because of the new features of the latest TV3D build. I'll tell you once it's done...
|
|
|
|
|
Logged
|
|
|
|
|
Gamecode
|
 |
« Reply #62 on: November 20, 2006, 11:28:22 AM » |
|
pls. how to make this GREAT efect in VB 6 + tv6.5?
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
|
Zaknafein
|
 |
« Reply #63 on: November 20, 2006, 12:44:39 PM » |
|
No problem, just port the C# code to VB6 and it should work well. 
|
|
|
|
|
Logged
|
|
|
|
|
TMichael
|
 |
« Reply #64 on: January 26, 2007, 01:09:01 PM » |
|
Just so this topic doesn't get buried, I have to say... wow! Beautiful work with the shader Zak. I recently chose TV3D for my project (I will upgrade to 6.5/license soon), and those water shader pics were one of the many selling points. I can't wait to begin experimenting with them myself.
Cheers, Tim
|
|
|
|
|
Logged
|
|
|
|
|
sciophyte
|
 |
« Reply #65 on: February 08, 2007, 01:55:11 AM » |
|
finally at the point to get some of the graphics done and i've kept tabs on this for future reference, i'm trying to port it into vb6 but i'm not quite sure what to do with this... q.x = Math.Sign(clipPlane.x) / culledProj.m11; q.y = Math.Sign(clipPlane.y) / culledProj.m22; q.z = 1.0f; q.w = (1.0f - culledProj.m33) / culledProj.m43; TV_4DVECTOR scaledPlaneVector = clipPlane * (1.0f / (clipPlane * q));
anyone have experience in both languages that can give me a hand? thanks
|
|
|
|
|
Logged
|
|
|
|
|
BlindSide
|
 |
« Reply #66 on: February 08, 2007, 10:14:05 AM » |
|
I'm not sure what's so difficult about porting that - the VB6 code should be practically identical. Let's see what the problem is maybe?
|
|
|
|
|
Logged
|
Blind's Dev Blog - www.smithbower.com/devblog/Irc.Desolation.Org :: #TV3DLicensed :: Moderated IRC channel for all your TV3D needs :: Non-Licensed users welcome.
|
|
|
|
Zaknafein
|
 |
« Reply #67 on: February 08, 2007, 11:22:50 AM » |
|
This is the new update code for my water shader, which will be in the new version... It's much simpler thanks to new tv3d functions : public void Update() { TVCamera viewportCamera = Core.Viewport.GetCamera(); TV_3DMATRIX reflView = viewportCamera.GetRotationMatrix(); TV_3DVECTOR camPos = viewportCamera.GetPosition();
// View matrix reflection 1 reflView.m41 = camPos.x; reflView.m42 = camPos.y; reflView.m43 = camPos.z; maths.TVMatrixReflect(ref reflectMat, waterPlane); reflView *= reflectMat;
// View matrix reflection 2 // Using two reflections allows not to reverse the culling mode on reflected geometry // Thanks for the tip, Sylvain :) TV_PLANE comb = new TV_PLANE(); TV_3DVECTOR vec = reflView.RowVec3(3); TV_3DVECTOR vec2 = vec + reflView.RowVec3(2); TV_3DVECTOR vec3 = vec + reflView.RowVec3(1); maths.TVPlaneFromPoints(ref comb, vec, vec2, vec3); maths.TVMatrixReflect(ref reflectMat, comb); reflView *= reflectMat;
waterCamera.SetMatrix(reflView);
reflectRS.StartRender(); waterCamera.SetProjectionClipPlane(false, waterPlane); renderDistant.Invoke(); waterCamera.SetProjectionClipPlane(true, waterPlane); renderClose.Invoke(); reflectRS.EndRender(); }
|
|
|
|
|
Logged
|
|
|
|
|
Waterman
|
 |
« Reply #68 on: February 08, 2007, 01:33:35 PM » |
|
What is all that code? :-) I use: At creation: camReflex.SetCustomProjection #.TV.Camera.GetProjectionMatrix plane=#.TV_PLANE.New 0 1 0 -0.5 camReflex.SetProjectionClipPlane 1 plane
In the loop: camReflex.SetPosition #.CAM.WORLDPOS * 1 -1 1 camReflex.SetLookAt (#.TV.Camera.GetLookAt).(x y z) * 1 -1 1 {}surfReflex.StartRender 0 (render stuff) {}surfReflex.EndRender
I guess i'm just so lazy ...
|
|
|
|
|
Logged
|
Things should be described as simply as possible - but not simpler [A. Einstein]
|
|
|
|
Zaknafein
|
 |
« Reply #69 on: February 08, 2007, 02:05:11 PM » |
|
Well I do clipping at runtime because I don't want to clip the skybox, which makes nasty artifacts when the water is very wavy. The SetLookat alternative is very interesting, it's simpler and probably faster than my matrix stuff 
|
|
|
|
|
Logged
|
|
|
|
|
Gamecode
|
 |
« Reply #70 on: February 13, 2007, 04:09:02 AM » |
|
pls pls '!! how to make this water (and shaders generally) in VB 6 ... can anybody translate or show any any tutorial for shaders + vb6 ? 
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
|
Gamecode
|
 |
« Reply #71 on: February 13, 2007, 04:22:06 AM » |
|
I'm not sure what's so difficult about porting that - the VB6 code should be practically identical. Let's see what the problem is maybe? i dont have (.net ? or what language)
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
Lil`Buh
Community Member

Posts: 54
|
 |
« Reply #72 on: February 13, 2007, 04:43:40 AM » |
|
i dont have (.net ? or what language) download it for free on microsoft's website... google "Visual Basic 2005 express"
|
|
|
|
|
Logged
|
|
|
|
|
Gamecode
|
 |
« Reply #73 on: February 13, 2007, 04:47:08 AM » |
|
i dont have (.net ? or what language) download it for free on microsoft's website... google "Visual Basic 2005 express" thanks i download it now ...
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
|
Gamecode
|
 |
« Reply #74 on: February 13, 2007, 05:35:17 AM » |
|
i downlooad , install ... and when opening Water.sln then VB type error : the aplication for project water.cpoj is not installed , make sure the aplication for the project type .csproj is instaled and same for shaders for vcproj
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
|
Hypnotron
|
 |
« Reply #75 on: February 13, 2007, 05:45:39 AM » |
|
i dont know about all that, but i do know you need the managed dll version of tv3d 6.5 referenced in those projects. you can find mtv3d65.dll on the beta page.
|
|
|
|
|
Logged
|
|
|
|
|
Gamecode
|
 |
« Reply #76 on: February 13, 2007, 05:47:26 AM » |
|
no change 
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
Lil`Buh
Community Member

Posts: 54
|
 |
« Reply #77 on: February 13, 2007, 05:54:42 AM » |
|
you installed Visual Basic ... and the shader is a C# project...
|
|
|
|
|
Logged
|
|
|
|
|
Gamecode
|
 |
« Reply #78 on: February 13, 2007, 05:56:27 AM » |
|
oh ... ok,i get istall c#
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
|
Gamecode
|
 |
« Reply #79 on: February 13, 2007, 12:29:52 PM » |
|
ok in c# all run ... bud FPS  only 50 on 1024*768 ,,,, clasics water run 160 - 170 Fps .... when this use in game, its be too slow 
|
|
|
|
|
Logged
|
aiR Captains - RC aircraft project TV65
|
|
|
|