3d models and Open GL

by teazel » Tue, 12 May 2009 01:36:00 GMT


Sponsored Links
 Hello All,

I've managed to get some basic 3d stuff working quite nicely on my
Android device. My question is how do you define/create more
complicated 3d models? Obivously using int[] arrays of vertices hand
written is quite time consuming and error prone. Are there any
modelling tools that can be used?

Thanks in advance,

James

--~--~---------~--~----~------------~-------~--~----~



3d models and Open GL

by nEx.Software » Tue, 12 May 2009 07:28:45 GMT


 Back in the day, before I gave up on my game idea, I was very close to
finishing an Android export script for Anim8or. It was all Java code
output. I found loading models that were at all complex took entirely
too long. Do a search for Obj Loader for Android, you'll find one on
Google Code. That might help. There was also a MD2 loader in that same
product. Sorry I have no links but I am on my phone at the moment.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. tethering eth0 interface

I am trying (what others have already done) - i.e to tether other
interfaces via the eth0 interface.
i.e to share the eth0 interface unlike the current 3G/GPRS (ppp0 interface).

But I am trying to do that from the framework - Tethering.java
As I understand - The lower layer NETD @ /system/netd/ doesn't put a
restriction as to which interface can be shared.

So when currently I enable USB tethering  - which module is placing a
restriction to use the 3G/GPRS connection or the ppp0 interface?
I want modify the framework (say add a new menu entry under some
BoardConfig.mk macro - if BOARD_HAVE_ETHERNET) and
allow the usb0 or the wifi0 to tether the local eth0 connection ...

So, please provide some pointers - as to which modules forces usage of
ppp0 interface,
and is it possible to set up the Tethering via frameworks - without
writing a new EtherController.cpp sort of handler for NETD (Since I
don't think anything is necessary to be done to setup eth0 to start
sharing...)

Thanks & Regards,
-- 
--Pavan Savoy

-- 

2. Android Kernel Build Errors- Yaffs2 Errors

yaffs2 Build Error

Using  2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
i686 GNU/Linux


I Had installed GIT git version 1.6.3.3
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)

repo version v1.7.3.1
(from git://android.git.kernel.org/tools/repo.git)
git version 1.6.3.3
Python 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11)
[GCC 4.4.1]

Successfully Installed repo client and buld the code.


Now downloaded the Android kernel using git command
$ git clone git://android.git.kernel.org/kernel/common.git android-
kernel

Inside Android Kernel i used make menuconfig
       ---> Used option Load Alternate Configuration and selected  my
configuration that am using basically ARM , used the same
CROSS_COMPILER path in .bashrc (myandroid/prebuilt/linux-x86/toolchain/
arm-eabi-4.2.1/bin)

Now when i build the code i was getting these Errors.
make


  fs/yaffs2/yaffs_fs.o
fs/yaffs2/yaffs_fs.c:400: error: unknown field 'delete_inode'
specified in initializer
fs/yaffs2/yaffs_fs.c:400: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:401: error: unknown field 'clear_inode' specified
in initializer
fs/yaffs2/yaffs_fs.c:401: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c: In function 'yaffs_delete_inode':
fs/yaffs2/yaffs_fs.c:799: error: implicit declaration of function
'clear_inode'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_setattr':
fs/yaffs2/yaffs_fs.c:1823: error: implicit declaration of function
'inode_setattr'


So i downloaded the recent yaffs2 folder using command   git clone
git://www.aleph1.co.uk/yaffs2' and copy it into fs/yaffs2/
and pasted it inide /android-kernel/fs/

 make


These Errors came up.

  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      fs/yaffs2/yaffs_fs.o
fs/yaffs2/yaffs_fs.c:37:26: error: linux/config.h: No such file or
directory
fs/yaffs2/yaffs_fs.c:187: error: unknown field 'prepare_write'
specified in initializer
fs/yaffs2/yaffs_fs.c:187: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:188: error: unknown field 'commit_write'
specified in initializer
fs/yaffs2/yaffs_fs.c:188: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:196: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:229: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c:237: error: unknown field 'delete_inode'
specified in initializer
fs/yaffs2/yaffs_fs.c:237: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_fs.c: In function 'yaffs_readlink':
fs/yaffs2/yaffs_fs.c:263: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:267: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_follow_link':
fs/yaffs2/yaffs_fs.c:287: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:291: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_lookup':
fs/yaffs2/yaffs_fs.c:328: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:332: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:337: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_clear_inode':
fs/yaffs2/yaffs_fs.c:396: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:411: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_delete_inode':
fs/yaffs2/yaffs_fs.c:432: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:449: error: implicit declaration of function
'clear_inode'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_file_flush':
fs/yaffs2/yaffs_fs.c:458: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_readpage_nolock':
fs/yaffs2/yaffs_fs.c:489: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_writepage':
fs/yaffs2/yaffs_fs.c:589: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_FillInodeFromObject':
fs/yaffs2/yaffs_fs.c:707: error: 'struct inode' has no member named
'i_blksize'
fs/yaffs2/yaffs_fs.c:759: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_get_inode':
fs/yaffs2/yaffs_fs.c:791: error: implicit declaration of function
'iget'
fs/yaffs2/yaffs_fs.c:791: warning: assignment makes pointer from
integer without a cast
fs/yaffs2/yaffs_fs.c: In function 'yaffs_file_write':
fs/yaffs2/yaffs_fs.c:808: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_readdir':
fs/yaffs2/yaffs_fs.c:868: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_mknod':
fs/yaffs2/yaffs_fs.c:962: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:965: error: 'struct task_struct' has no member
named 'fsuid'
fs/yaffs2/yaffs_fs.c:966: error: 'struct task_struct' has no member
named 'fsgid'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_unlink':
fs/yaffs2/yaffs_fs.c:1077: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1081: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_link':
fs/yaffs2/yaffs_fs.c:1107: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1115: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_symlink':
fs/yaffs2/yaffs_fs.c:1145: error: 'struct task_struct' has no member
named 'fsuid'
fs/yaffs2/yaffs_fs.c:1146: error: 'struct task_struct' has no member
named 'fsgid'
fs/yaffs2/yaffs_fs.c:1150: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1152: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_sync_object':
fs/yaffs2/yaffs_fs.c:1179: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_rename':
fs/yaffs2/yaffs_fs.c:1203: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1209: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1227: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1229: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_setattr':
fs/yaffs2/yaffs_fs.c:1254: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1260: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1262: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c:1270: error: implicit declaration of function
'inode_setattr'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_statfs':
fs/yaffs2/yaffs_fs.c:1278: error: 'struct inode' has no member named
'u'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_internal_read_super':
fs/yaffs2/yaffs_fs.c:1527: warning: format '%d' expects type 'int',
but argument 2 has type 'uint64_t'
fs/yaffs2/yaffs_fs.c: In function 'init_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2061: error: 'proc_root' undeclared (first use in
this function)
fs/yaffs2/yaffs_fs.c:2061: error: (Each undeclared identifier is
reported only once
fs/yaffs2/yaffs_fs.c:2061: error: for each function it appears in.)
fs/yaffs2/yaffs_fs.c: In function 'exit_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2107: error: 'proc_root' undeclared (first use in
this function)
make[2]: *** [fs/yaffs2/yaffs_fs.o] Error 1
make[1]: *** [fs/yaffs2] Error 2
make: *** [fs] Error 2


How do i resolve this, Please suggest some solution on this.

Thank You.

-- 

3. Networking configuration changes

4. Gingerbread enak ga sih ?

5. Prism - Please help test my puzzle game! (Release Candidate)

6. How to catch a link clicked in SMS or Email application?

7. Paging Yudha Y H S