Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Graphics3D library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2010, 02:52 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Graphics3D library

Following the http://www.basic4ppc.com/forum/share...html#post22546 I translated and improved it into a library.

There are two similar demo programs, for desktop and device. Start with the desktop and understand the functionality, then it will be easier on the device.

The attachment includes source (cs file to put in the libraries directory) and help in addition to the dll.

Ver 1.1 - addition of ZAxis method to change the direction of Zaxis, and improvement related to presentation of concave bodies. Desktop program is updated with more bodies.

Ver 1.2 - updates the drawing to use position in 3D and rotation in one method. Also GcCollect added to keep memory under control.
An example of how to display two objects with alternating order is added to the updated programs of the previous version.

Ver 1.3 - When doing multiple axes rotation at the same time the results vary with the order of rotation. This update enables selection of 6 different orders of rotation.
Attached Images
File Type: jpg Screen14.jpg (47.0 KB, 65 views)
File Type: jpg Screen15.jpg (46.9 KB, 47 views)
Attached Files
File Type: zip Graphics3D Ver1.3.zip (79.2 KB, 108 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 06-30-2010 at 09:44 AM.
Reply With Quote
  #2 (permalink)  
Old 06-09-2010, 06:24 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Ver 1.1 - addition of ZAxis method to change the direction of Zaxis, and improvement related to presentation of concave bodies. Desktop program is updated with more bodies.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 06-11-2010, 10:19 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

very nice! first real 3d game on b4ppc cooming soon? =)
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #4 (permalink)  
Old 06-13-2010, 01:18 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Quote:
first real 3d game on b4ppc cooming soon? =)
We are serious people, we don't play games here !!

But the attached update 1.2 is another step towards such things.

- edit - the update is updated to include the previous programs.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 06-13-2010 at 07:06 PM.
Reply With Quote
  #5 (permalink)  
Old 06-21-2010, 02:58 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

what about using image when drawing poligon?
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #6 (permalink)  
Old 06-22-2010, 03:05 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

sorry, I don't understand the question.
Please explain what you need.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 06-22-2010 at 07:13 PM.
Reply With Quote
  #7 (permalink)  
Old 06-24-2010, 08:40 AM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

when we create 3d object we use other colors.can we use a bitmaps for this?
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #8 (permalink)  
Old 06-24-2010, 09:12 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Byak@ View Post
when we create 3d object we use other colors.can we use a bitmaps for this?
Perhaps an extension to that query: I wondered if there is any similarity (mathematically) to wrapping a bitmap around, say, a cylinder and rotating it?

I do understand that wrapping around a globe would be difficult because that introduces a projection!

Mike.
Reply With Quote
  #9 (permalink)  
Old 06-25-2010, 05:08 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Quote:
when we create 3d object we use other colors.can we use a bitmaps for this?
I don't know how to put an image on a polygon. If there was something instead of FillPolygon - I could use it.

Quote:
I wondered if there is any similarity (mathematically) to wrapping a bitmap around, say, a cylinder and rotating it?
The 3D bodies are made of vertices and the faces between them. Creation of a body which is made of curved planes is something completely different. An effect of a curvature can be done with gradient coloring but to put an image on a curved surface - I don't have a clue
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #10 (permalink)  
Old 06-26-2010, 08:12 PM
Senior Member
 
Join Date: Nov 2009
Posts: 153
Default

Nice! But some of the dat files are missing from v1.2 release (i.e. boom1.txt)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 07:14 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0