Experiments in loading client side geometry

2»

Comments

  • That ship exhists, i mean doesnt, i saw something, i mean, nothing...
  • It's Naosyth's. Alviss thinks it looks crappy.
  • nice job ruining the mystery.
  • There are somethings we shouldnt know, and never find out, that was one of those things
  • .obj model files are just ASCII. Each line describes either a vertex (as a set of 3 floating point numbers, as coordinates in 3D space), a face (3 vertex references), or slightly more exotic things, like texture coordinates, or vertex normals. You can easily write a script to read those sorts of files and put the relevant information into an object (in this case, I call them Virtual Meshes).

    The virtual meshes have a position, the vertex coordinates, which vertex groups form faces, and some light shading calculations (so the thing isn't one big blob of one color) that involve calculating normals and some basic vector operations to calculate available light without self occlusion.

    Once all of that data is available, it is just a matter of issuing commands to draw triangles. This requires a small change to the PlayGUI object, but that is something accomplished purely with script modifications.

    No machine code level modifications, if that is what you are asking.

    What kind of "mod" needs to be applied to the PlayGUI object?
  • ECM...i think
  • It's type needs to be changed to the editor's GUI type. It behaves essentially the same way, except you get the method calls for drawing lines, spheres, and triangles. You also lose the ability to see beacons (except around the edges of the screen), zoom, and several HUD elements become more transparent.
  • I don't really care about the beacons. And I don't get how you can change its "Type"...

    Edit:

    I tried changing "new GameTSControl" to "new GuiControl" and now I can't see anything.

    This is what I see:

    blind.png
  • That isn't the type used by the editor. And I believe you made a spelling error.
  • I made sure I spelled it right. It's spelled correctly. But what do you mean by "Type"?
  • Forget it, I learned how to load shape files client side. ^_^
Sign In or Register to comment.