Problem with lessons

24 views
Skip to first unread message

terkhen

unread,
Oct 20, 2011, 1:12:32 PM10/20/11
to PhiloGL
Hello!

I have started to learn PhiloGL recently. I'm glad that I found it,
because it is sparing me the confusion of learning low level WebGL :)

I have been following the example lessons to learn how to use the
framework, but I found a problem. All lessons from 5 onwards fail to
display for me (I only get a white rectangle). Since that is the first
lesson to use textures, I'm assuming that they are the problem. I'm
using Google Chrome version 14.0.835.202. I tried in both 1.4.0 and
1.4.1. Other examples with textures I found on the git repository fail
too. What can be causing this problem?

Thanks in advance.

Nicolas Garcia Belmonte

unread,
Oct 20, 2011, 1:16:04 PM10/20/11
to phi...@googlegroups.com
What OS are you using?

--
Nicolas Garcia Belmonte - http://philogb.github.com/

terkhen

unread,
Oct 21, 2011, 3:39:14 AM10/21/11
to PhiloGL
Windows 7 64 bits. I have a Nvidia 9600 GT with up to date drivers.
Lesson 5 and all other PhiloGL lessons after that one fail to display
for me. I tested with Firefox 7.0.1 and I got the same results.

Other WebGL programs with textures (such as the original WebGL Lesson
5) work fine for me. The problem only happens with PhiloGL examples
that include textures.

Nicolas Garcia Belmonte

unread,
Oct 21, 2011, 12:39:53 PM10/21/11
to phi...@googlegroups.com
Thanks for the feedback. I will check this as soon as I get to work.
I'm guessing this has to do with some default options set to textures
when creating them.

https://github.com/philogb/philogl/blob/master/src/webgl.js#L279

If you want to troubleshoot the problem until I get my hands on a
Windows box you can try commenting out some of the options and see
what happens. Make sure you clear your cache until reloading the
example.

I hope that helps,

--

terkhen

unread,
Oct 24, 2011, 6:04:28 AM10/24/11
to PhiloGL
Except the addition of UNPACK_FLIP_Y_WEBGL, all the options are
similar to the ones present in the original lesson 5 example.
Commenting this option out did not solve the issue. I'm just starting
with WebGL and the PhiloGL.js is quite complex so I don't know what
else I could test.

Nicolas Garcia Belmonte

unread,
Oct 24, 2011, 8:32:22 AM10/24/11
to phi...@googlegroups.com

Are you testing the examples behind a web browser or just by opening the lesson local file in your browser?

Nicolas Garcia Belmonte

unread,
Oct 24, 2011, 8:33:31 AM10/24/11
to phi...@googlegroups.com

A web server I meant, sorry. I mean are you having the same problems if you test Tue lesson examples from the web page at senchalabs ?

pangwa

unread,
Oct 24, 2011, 8:34:45 AM10/24/11
to phi...@googlegroups.com
I remember I met similar issue before. I got an error about the fs/vs shader, it can't compile because it exceeds some limits. But I forgot the exact error. Let me check tomorrow…

thanks,
-pangwa-

terkhen

unread,
Oct 25, 2011, 5:17:01 AM10/25/11
to PhiloGL
I'm running them as local files. I wasn't able to test the online
lessons before because the links were broken. Now the links work, and
the online lessons works fine for me. Local files keep failing. I was
under the impression that the lessons did not require a proper server
to run, do I need to install a http server to run them locally?

terkhen

unread,
Oct 25, 2011, 5:47:34 AM10/25/11
to PhiloGL
I installed a http server and now everything works fine. Thank you!

Nicolas Garcia Belmonte

unread,
Oct 25, 2011, 10:44:33 AM10/25/11
to phi...@googlegroups.com
Awesome!

On Tue, Oct 25, 2011 at 2:47 AM, terkhen <ter...@gmail.com> wrote:
> I installed a http server and now everything works fine. Thank you!

--

Reply all
Reply to author
Forward
0 new messages