Go to advanced search

by tipam
Mon Jul 09, 2012 9:11 pm
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

Hi Jesse ... I must admit I haven't uploaded any heirarchical examples, but you can do this with the pi3d.matrix function. I'll upload an Earth2.py which should demonstrate how this is done with the moon orbiting at an angle with satellites orbiting the moon (see below). ...
by Huulivoide
Mon Jul 09, 2012 12:33 pm
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

... Here is a video demonstrating it. http://www.youtube.com/watch?v=b2M-J3LpdCg Get the code from my 'spin' branch at https://github.com/Huulivoide/pi3d/tree/spin
by tipam
Fri Jul 06, 2012 5:56 pm
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

If you haven't downloaded the latest update yet - GOOD! ... I've just updated again with fixes on lighting, normals, matrices and model loading. There is now a Shapes.py example to give you an idea of the shapes available. Tim..
by tipam
Fri Jul 06, 2012 1:14 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

Pi3D RELEASE 2 NOW UPLOADED!! Go to http://www.github.com/tipam/pi3d for the latest release of Pi3D plus several demos that use the new features!! Here's a very brief outline of what's been added ... - Lots of built-in shapes: ...
by tipam
Wed Jul 04, 2012 7:52 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

When will be the source code be up? Pictures are nice, but source code one can play with would be nicer ^_^ Neeearly there! Just tieing up last loose ends for this version so there aren't huge changes with the interfaces next time - there will be a lot more stuff to play with! Friday I should get i...
by Huulivoide
Wed Jul 04, 2012 12:06 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

When will be the source code be up? Pictures are nice, but source code one can play with would be nicer ^_^
by tipam
Tue Jul 03, 2012 12:38 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

Another update ... Pi3D now has Paddy's Panda3D file loader and several more things have been added including some gaming ability. I'm working on a small shoot-em-up and made a few other demo's like 'ForestWalk' which runs in full ...
by tipam
Fri Jun 29, 2012 12:57 pm
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

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 paddyg
Fri Jun 29, 2012 11:37 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

paddyg wrote:I tried but failed to get material properties
also didn't get much joy from the camera class. Not really sure how to use it but I imagined the scene would change as the camera moved or turned as if viewed from the camera.
by paddyg
Thu Jun 28, 2012 6:38 pm
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 4638

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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: 244
Views: 40247

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 ...

Go to advanced search