Go to advanced search

by paddyg
Thu Jun 28, 2012 6:38 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

... http://www.eldwick.org.uk/files/loadModel_mods.zip (as with previous zips this needs the various other support files from https://github.com/tipam/pi3d/tree/) readme.txt: Some notes on the loadModel() class in pi3d __init__ takes just the file path/name: If the name is not “” it generates a dict ...
by tipam
Thu Jun 28, 2012 9:45 am
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Another update (inbetween work!) ... Added environment cube ... http://www.skillmanmedia.com/pi3d/images/envcube.jpg Also working on bitmap fonts ... I've written a util that will convert fonts from your PC/Mac into a single image and export the Python code to read it ...
by Huulivoide
Wed Jun 27, 2012 8:51 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Also on the CPU% load "problem"
On fully up-to-date Arch linux distro, all of the examples
cause CPU usage to go up to 100%
by tipam
Mon Jun 25, 2012 11:23 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

The way to make it all load fast seems to be to take out the python wrapper eglchars() completely. I haven't tested this exhaustively but it seems to work on a couple of things I've just tried so it should form the basis of 'a better method'. I use the ctypes.c_char_p() so only have to send a point...
by tipam
Mon Jun 25, 2012 11:21 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

.tostring("raw",RGBs) actually it's the eglchars() method that takes all the time. I tried saving the images as 'raw' strings but it seemed to take the same time and this is why. If at first you don't succeed try, try again (and don't give up!) ... I finally found a way that *instantly* loads the t...
by tipam
Mon Jun 25, 2012 9:11 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Hmm - I wonder if there's a way of passing pointers rather than copying strings?
by paddyg
Mon Jun 25, 2012 6:29 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

The way to make it all load fast seems to be to take out the python wrapper eglchars() completely. I haven't tested this exhaustively but it seems to work on a couple of things I've just tried so it should form the basis of 'a better method'. I use the ctypes.c_char_p() so only have to send a pointe...
by paddyg
Mon Jun 25, 2012 5:11 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

paddyg wrote:.tostring("raw",RGBs)
actually it's the eglchars() method that takes all the time. I tried saving the images as 'raw' strings but it seemed to take the same time and this is why.
by paddyg
Sun Jun 24, 2012 9:57 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Not really sure how else to do it but most of the time seems to be taken with

Code: Select all

.tostring("raw",RGBs)
by Jim Manley
Sun Jun 24, 2012 12:40 am
Forum: General discussion
Topic: Raspberry Pi are already evolving
Replies: 20
Views: 3351

Re: Raspberry Pi are already evolving

Not to mention lapdock portability mode (and batteries are included :) ) support for the larger, faster SD cards, OpenGL ES support in Python (plus Pi3D under development), displaying OpenGL ES images within an X window, etc. I'm poking along getting OpenGL ES based 3-D model primitives ported to ...
by tipam
Sat Jun 23, 2012 8:34 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

... to find solutions for the following - it would help me speed up devs a bit! 1) Grab 'window' context so that keys and mouse events are directed to Pi3D only 2) A better solution to key press events than curses! ... I get a lot of keyboard buffer lag and annoying feedback in the Python terminal. ...
by dom
Sat Jun 23, 2012 7:38 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

@Gibble Lots of things it could be. First update the firmware (with rpi-update) on the Squeeze image, and see if performance changes. If not then its possibly something installed. Try a clean Squeeze and a clean Wheezy image to find out. If neither of those idnehtifies it then maybe something differ...
by Gibble
Sat Jun 23, 2012 7:33 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

... to get a basic obj file imported and displaying (only basic bit, no materials or groups etc, and no vertex optimisations), translating with pi3d. I'm new to python, so my code is really duff (could probably be reduced half the size), but happy to let anyone else have it if it gets them started ...
by tipam
Sat Jun 23, 2012 6:38 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Thought I would add a few pics here of Pi3D progress ... 1. Lots of pre-built shapes; sphere, cone, cylinder, truncated-cone, torus, spiral, extrude, tube, cuboid, lathe (create a vase, jet engine, proper wheels and whatever you like!) I'll ...
by tipam
Sat Jun 23, 2012 5:00 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

... place) and to render it with smoothing on. The normals are set on the vertices as per smoothing (in blender) but don't seem to have any effect in pi3d (again need to set something probably). The light does seem to work with UV textures loaded from files though, for some reason, with a light added ...
by paddyg
Thu Jun 21, 2012 3:15 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

... place) and to render it with smoothing on. The normals are set on the vertices as per smoothing (in blender) but don't seem to have any effect in pi3d (again need to set something probably). The light does seem to work with UV textures loaded from files though, for some reason, with a light added ...
by paddyg
Wed Jun 20, 2012 11:30 am
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

yet more http://youtu.be/Z1pysY_qbEQ I have tried to offload the calculation of the pip locations to the graphics functions. It seems more jerky as if it's actually taking longer but at least it puts things in the right place! I will upload the latest version here. Still need to figure out the rotat...
by Gibble
Wed Jun 20, 2012 9:50 am
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Nice work. Following all of this with interest. Just getting my head around modelling a bit more, then will have a further play with pi3d and the work you chaps have done.
by paddyg
Tue Jun 19, 2012 9:27 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

video here http://youtu.be/gqx9WZop2Js I've re-worked the loadModule class so that it copes with <Group> and <VertexPool> and assigns materials as well as textures. As it stands all it does with materials is allocate the diffr,diffg,diffb to the colours in the couple of lines commented out under the...
by chrislale
Sun Jun 17, 2012 8:14 pm
Forum: General discussion
Topic: 3D
Replies: 30
Views: 6127

Re: 3D

matthewtb wrote:Wait a few months and Pi3D will be available for download... :geek: :mrgreen:
Yes, looks interesting. Presumably it won't help with Kivy though?
by matthewtb
Sun Jun 17, 2012 7:53 pm
Forum: General discussion
Topic: 3D
Replies: 30
Views: 6127

Re: 3D

Wait a few months and Pi3D will be available for download... :geek: :mrgreen:
by HiggleBottom
Sun Jun 17, 2012 1:43 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Ah. Thanks anyway!
by rurwin
Sun Jun 17, 2012 1:17 pm
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

No, not unless it virtualises the videocore, which it can't. Good catch.
by Gibble
Sun Jun 17, 2012 11:38 am
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Just thinking, will the GL stuff work in a VM anyway ?
by rurwin
Sun Jun 17, 2012 11:01 am
Forum: Python
Topic: Pi3D
Replies: 224
Views: 17856

Re: Pi3D

Have you done an rpi-update? IIUC that installs the libraries.

Go to advanced search