Help understanding WebGL

22 views
Skip to first unread message

Fernando Carvalho

unread,
Feb 15, 2012, 5:13:39 PM2/15/12
to webgl-d...@googlegroups.com
Hi everyone,

I'm starting learning WebGL and my intention is to create a simple program that only draw a triangle, and don't need to use matrices for transformations, projections, and that don't have external dependencies.
So I created a simple javascript, based on the first example found on the OpenGL ES 2.0 programming guide, and the lesson 1 from learningwebgl.com, but I'm unable to get my triangle being displayed on the screen.
I'm sending the code on the attachment, so you could see.

Thanks for your support in advance,

--
Fernando
new.html

Fernando Carvalho

unread,
Feb 15, 2012, 6:20:13 PM2/15/12
to webgl-d...@googlegroups.com
Hey guys,

I've found the problem here. I was doing a mistyping of a word in the Javascript code, which the compiler, was not alerting me.
I've attached the working example.
--
Fernando
new.html

Krystian Samp

unread,
Feb 17, 2012, 9:54:01 AM2/17/12
to webgl-d...@googlegroups.com
Hi,
You might find http://webglplayground.net helpful if you try to learn
webgl. Here is a simple example with a white triangle and a red
background: http://webglplayground.net/saved/pl6B6fqCB1. Good luck,

Cheers,
Krystian

2012/2/16 Fernando Carvalho <fernandocar...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages