Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  3D Sprites with Java2D ??  (Read 3810 times)
0 Members and 1 Guest are viewing this topic.
Offline NewOnJava

Junior Devvie

1970 born Java game hobbyer.

« Posted 2010-04-15 00:23:15 »


My 3D game area holds polygons and scaled BufferedImage 3D sprites.

Im currently planning to create my objects with Blender, objects hold only shaded/colored polygons no textures.
If i build an wwii time polygon Spitfire with Blender, then how i should build a sprite sheet for every 3D angle of spitfire and how many angles i need for xyz ??


Offline lhkbob

JGO Knight

Medals: 32

« Reply #1 - Posted 2010-04-19 16:26:47 »

You would want something that takes renderings of the model from many different angles.  One way to do this might be with spherical coordinates to evenly split up the areas by certain degrees to choose where to render from.  Or you might already know which angles you need and just use those.  If you're using Blender, you could probably write a python script that automated it from within Blender and you wouldn't have to worry about loading models into some java program.

Offline Wildern

Junior Devvie

« Reply #2 - Posted 2010-04-20 00:26:23 »

In Blender, you can set up an animation timeline to go through your rotations and then render all the frames.  You then pull the renders into Photoshop or Gimp and remove the background.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline NewOnJava

Junior Devvie

1970 born Java game hobbyer.

« Reply #3 - Posted 2010-04-20 10:07:08 »


I have here link to my Java2D chessboard, chessboard has 2D sprites on, and few white horses floating over the board too.

chessboard ->  my link is not 24h.

I want to build an Java2D engine for polygons and scaled sprite2d and scaled sprite3d, my polygon and scaled sprite2d codes are almost ready,
i now only need few words for scaled sprite3d routines, if i build an object with blender, maybe this wwii time spitfire, what i mentioned
earlier, im sorry for my English, i may need few ways to build an sprite sheet from this blender object.

I think this way ->

Blender object "spitfire" is ready and saved as an .directx file.

I need to build an .directx file loader.
I only will use Java2D, so i only need color and polygons.

I need Java2D 3D engine.
I have my chessboard on my link, made with my 3d engine, which i think is enough for my spitfire too.

I need sphere type array for angles of blender object.

I draw every angle of my spitfire for my bufferedimages.
I dont yet know how many bufferedimages i should use for my 3d sprites, maybe some what of 64-96-128-??? ?

I next need help with math.
how i should calculate the right 3d sprite from bufferedimages, when my sprite is on my 3d area.
There must be some math for this too ??

I then just use my ready engine with my projects.

Well, when i writed it down it looks quite an ease task.

I remember Amiga and AtariST game "Battlehawks of Pacific ??" from somewhere late '80s or early '90s.
"Battlehawks of Pacific ??" used this way 3d sprites to create aireal battles between american navy and imperial japanese navy at ww2.

If you checked that chessboard demo at the top of my message you get the idea of what im planning to my site, i think a ww2 time
game over british channel would be nice, i really would presiede every detail what you may have to share for my 3d project,
i have really almost zero  experiense on 3D games, and when im only planning to use Java2D then this is a bit more complex to accomplish.


Offline DzzD
« Reply #4 - Posted 2010-04-20 12:11:02 »

you should add the fllowinf parameter to your applet so it wont blink when IE browser is resized : 

<PARAM name="java_arguments" value="-Dsun.awt.noerasebackground=true">

Pages: [1]
  ignore  |  Print  

EgonOlsen (59 views)
2018-06-10 19:43:48

EgonOlsen (42 views)
2018-06-10 19:43:44

EgonOlsen (61 views)
2018-06-10 19:43:20

DesertCoockie (240 views)
2018-05-13 18:23:11

nelsongames (142 views)
2018-04-24 18:15:36

nelsongames (141 views)
2018-04-24 18:14:32

ivj94 (883 views)
2018-03-24 14:47:39

ivj94 (144 views)
2018-03-24 14:46:31

ivj94 (795 views)
2018-03-24 14:43:53

Solater (159 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!