Rick Posted January 6, 2010 Share Posted January 6, 2010 So what would be the main difference between these 2? If I wanted to be able to paint a texture on 1 side and have it not seen on the other what would be the best way to do that? Quote Link to comment Share on other sites More sharing options...
Niosop Posted January 6, 2010 Share Posted January 6, 2010 CreateSurface creates a 3D surface with no verts, you'd have to add verts/tris to it to make a plane. CreatePlane probably creates a two tri plane for you. Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
Paul Thomas Posted January 6, 2010 Share Posted January 6, 2010 CreatePlane() I would have to say. Unless you want to add specific vertex positions and/or triangles for the surface with AddVertex()/AddTriangle(). Which also has been provided by Josh in the Framewerk Renderer as "CreatePatch(xsegments, zsegments)," which is used for the water plane. Quote Link to comment Share on other sites More sharing options...
Rick Posted January 6, 2010 Author Share Posted January 6, 2010 So I'm actually looking at making my own water. So Josh uses a surface and adds verts for water? Would it matter if I used a plane or surface for water? Why would he use a surface instead of a plane? Quote Link to comment Share on other sites More sharing options...
Paul Thomas Posted January 6, 2010 Share Posted January 6, 2010 I honestly don't know. Either he'll have to answer that or someone else who would know would have to. I was going to eventually start working on water myself so I'll be curious how far you get. For now I'd use CreatePatch() and CreatePlane() for testing purposes. Quote Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted January 7, 2010 Share Posted January 7, 2010 I honestly don't know. Either he'll have to answer that or someone else who would know would have to. I was going to eventually start working on water myself so I'll be curious how far you get. For now I'd use CreatePatch() and CreatePlane() for testing purposes. Quote Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted January 7, 2010 Share Posted January 7, 2010 did someone say water... i'm all ears --Mike Quote Link to comment Share on other sites More sharing options...
Rick Posted January 7, 2010 Author Share Posted January 7, 2010 I have a decent start on it. I just can't figure out why when I scale the plane it turns black and any material I had on it doesn't show because it's all black. But it's very cool to just drag in a water plane, place it where it makes sense and have it waving. I need better water textures and probably a better shader. I'm just using the leaf sway shader. The cool thing about this is that you can have multiples of these at any height and any size. So I could have puddles even if I wanted to. Plus give that freedom I can make a weather object and link all the puddles/body of waters to the weather object so when it's "raining" it can move the plane up to a certain level to simulate the water rising and when it's dry move it down a certain level over a given interval to simulate drying up. Quote Link to comment Share on other sites More sharing options...
Paul Thomas Posted January 7, 2010 Share Posted January 7, 2010 I had a feeling that's why he didn't use a plane, since he does waterplane.setscale(camera.farrange * 3.0). Try using the CreatePatch() (fw.CreatePatch(20, 20) I believe it would be, I've sliced and diced my framewerk several times), see if it makes any difference? Quote Link to comment Share on other sites More sharing options...
Rick Posted January 7, 2010 Author Share Posted January 7, 2010 Actually I figured it out. I was using 0 for the Y. If I use 0.01 then it works! Quote Link to comment Share on other sites More sharing options...
Paul Thomas Posted January 7, 2010 Share Posted January 7, 2010 Nice Quote Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted January 28, 2010 Share Posted January 28, 2010 i'm also on the quest for ocean waves.... i've got a patch created, but can't seem to scale it past what it was originally set to... this is what i'm doing... Local patch:TEntity=fw.Renderer.CreatePatch(22,22) PositionEntity patch,[0.0,-1.0,2.0] material=LoadMaterial("abstract::untitled.mat") PaintEntity patch,material patch.SetScale(Vec3(10.0,1.0,10.0)) question - does createpatch(22,22) create a surface with 22 x 22 vertices? thx --Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.