• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 43 44 45 46 47 ... 117 Next »

[Linux, OpenGL 4] How are you devs setting/using OpenGL?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Linux, OpenGL 4] How are you devs setting/using OpenGL?
03-30-2014, 07:29 AM
#7
Katastic Voyage
Unregistered
 
Okay, so I've got tessellation stage working on Dolphin. Textures, normals, everything displays fine. But I have to apply a projection to implement the PN triangles algorithm to give my new vertices "depth" from their original mesh.

Problem is, Dolphin seems to be doing something strange with the w component of vertices/normals. If I chop it off, and place it back with an identity, I lose essentially all drawing that'd not a 2-D overlay.

And if I keep those vec4's, my projection function:

vec4 ProjectToPlane(vec4 Point, vec4 PlanePoint, vec4 PlaneNormal)
{
vec4 v = Point - PlanePoint;
float Len = dot(v, PlaneNormal);
vec4 d = Len * PlaneNormal;
return vec4(Point- d);
}

Seems to do jack all, while it's supposed to work fine and is straight from an online example and seems to line up exactly with the algorithm. (Except I changed from vec3's to vec4's.)

Also, what would be the easiest way to get access to the current program shader id from within frame.cpp? I'd like to add a key to change the current tessellation level in real-time, so I tried to work around Free Look. But I couldn't figure out how to get the namespaces/variable names to compile.
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[Linux, OpenGL 4] How are you devs setting/using OpenGL? - Katastic Voyage - 03-24-2014, 05:04 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - delroth - 03-24-2014, 05:30 PM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Sonicadvance1 - 03-24-2014, 08:36 PM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - pauldacheez - 03-25-2014, 05:57 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Katastic Voyage - 03-25-2014, 09:42 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Sonicadvance1 - 03-25-2014, 04:12 PM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - Katastic Voyage - 03-30-2014, 07:29 AM
RE: [Linux, OpenGL 4] How are you devs setting/using OpenGL? - degasus - 03-30-2014, 10:56 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode