Skip to main content
GameDev.net gamedev.net
🔒 Locked

[web] webgl php and js

Started by giugio Mar 18, 2011 at 11:21 AM 1 replies 1.4k views
Original Post
giugio
giugio
hello.
I would understand how work a mesh viewer gallery with webgl.
I have created in c++ a project that create a text file with all the geometry (normal,uv,position ecc..) from sketchup and his api.
I inserted it in a mysql db with his path on the server.
How work now?
when i select the mesh (clicking a link for example) i get the path of the file on the server and next?
i must transfer the text file from server to client?
How?
in ajax?
I also think that i can create the html in the php page with all the vbo filled in js, so i can don't open and parse the file in js on the client.
and for the textures?
web
zedz
zedz
u dont need php

A/ create a html page (with a webgl canvas) // google
B/ create some javascript to load a model & display it

There are various methods of storing a models data, eg as a json file
have a look here
http://learningwebgl.com/blog/

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.