Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (555)
Games in Android Showcase (148)
games submitted by our members
Games in WIP (601)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 18
1  Discussions / General Discussions / Re: What's your day job? on: 2015-02-17 00:15:42
it does come at a slight cost and that is incompetent teachers.

Beats Texas. We have teachers that are incompetent AND psycho.
2  Discussions / General Discussions / Re: What's your day job? on: 2015-02-16 16:05:25
the usual college-level jobs. studying robotics.
3  Game Development / Newbie & Debugging Questions / Re: convert expression for use with vecmath on: 2015-02-15 19:54:17
javax.vecmath creates so much garbage that it is best avoided

Unfortunately I need it for jbullet
4  Game Development / Newbie & Debugging Questions / Re: convert expression for use with vecmath on: 2015-02-15 15:30:09
Javax.vecmath

It doesn't. For example adding vectors v1 and v2 with v1.add(v2) stores the result in v1
5  Game Development / Newbie & Debugging Questions / convert expression for use with vecmath on: 2015-02-14 01:48:31
since all the math operations in vecmath apply the result to the object they're called on instead of returning the result, i can't just replace + with add() and make sure the parentheses are in the right place. How should i convert a mathematical expression to vecmath without using a bunch of temporary variables?
6  Java Game APIs & Engines / OpenGL Development / Re: LWJGL 3; how's it getting along? on: 2015-02-13 21:50:51
any significant advantages over JOGL2?
7  Game Development / Shared Code / Source Engine MDL code on: 2015-01-19 17:27:35
http://www.java-gaming.org/user-generated-content/members/18483/crowbar-port.jar

This code loads up data from SourceEngine model files. for examples on how to use the data, check the Core/Filedatacompiled code

crowbar_.24_vb contains the original Visual Basic code
/crowbar_pidgin_.24 contains a bastardized VB/java version output by a program I cobbled together to make porting easier.
crowbar contains the converted code.

the Decompiler.readcompiledfiles method reads the model files.
8  Discussions / Community & Volunteer Projects / porting VB code for source engine MDL files on: 2015-01-16 15:45:46
I am working on porting a VB program that decompiles Source Engine MDL files into Java.  If anybody wants to load MDL files or is interested in helping, I can put up the VB code and my current progress
9  Discussions / General Discussions / Re: Simple 3D modeling software suitable for games? on: 2015-01-15 02:54:48
true, but i've been using it and Roadkill on WINE with no problems
10  Discussions / General Discussions / Re: Simple 3D modeling software suitable for games? on: 2014-12-16 23:53:12
Try one called Anim8or. It is EXTREMELY simple to use, but you can make some very great models using it. It can export to OBJ. Also, its native an8 format is easy to parse, and supports skeletal animation.
11  Discussions / General Discussions / Re: Reasons for using a scripting language in your game? on: 2014-12-05 03:55:47
It makes your game easier to mod because your users won't have to compile java code and get the clsspath to the game's libraries right, they can just edit the script files.

I also remember seeing somewhere that it's easier to secure than classes loaded by reflection
12  Discussions / Miscellaneous Topics / Re: Is drinking half a bottle of vodka safe? on: 2014-11-16 21:39:38
drimking alcohol just for the sake of drinking and/or getting drunk is is stupid. and a great way to end up drowning on your own vomit
13  Discussions / Miscellaneous Topics / Re: Full Visual Studio for free on: 2014-11-16 21:24:22
I found VS to be rather slow. Also since i also do coding on linux, might as well just use code::blocks
14  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-16 20:14:52
I noticed some strange stuff in my SMD file.

1  
2  
3  
4  
5  
2 3.890447 0.000000 0.000000 -1.570796 0.051836 -1.565574 // left thigh
5 -3.890447 0.000000 0.000000 -1.570796 0.051836 -1.576018 //right thigh

14 2.059528 0.977921 1.937661 1.589740 -1.286515 2.950147//left clavicle
 18 2.059528 0.977922 -1.937661 -1.661569 1.286515 2.950147//right clavicle


both the thighs (which are really where the hips are) and clavicles are mirror images of each other.
notice how the thighs are done using negated position but same rotation, but the clavicles have a different axis inverted and have 2 inverted angles.

as far as the bone format goes, the position refers to where the end of the bone is. Also, because in anim8or, the root bone can't own objects, so i have to add the smd root bone to the an8 root bone.
15  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-14 21:02:34
the only thing i use position for is calculating of the bone. switching values won't make a difference.
I found an SMD loader for JMonkey, which has the same coordinate system as anim8or..

this is the code used to create a rotation matrix for the bone.
 
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
Matrix3f m1 = null;
        Matrix3f m2 = null;
        Matrix3f m3 = null;
        try {
            m1 = new Matrix3f();
            m1.fromAngleAxis(rot.x, Vector3f.UNIT_X);
            m2 = new Matrix3f();
            m2.fromAngleAxis(rot.y, Vector3f.UNIT_Y);
            m3 = new Matrix3f();
            m3.fromAngleAxis(rot.z, Vector3f.UNIT_Z);
        } catch (Exception Ex) {
            logger.log(Level.SEVERE, "Error, building rotation Matrix3f from "
                    + "rotation vector.", Ex);
        }
        return m3.mult(m2).mult(m1);


this is the same as what I've been doing in my code, and also in theagentd's code.
there must be something stupidly simple we're missing.
16  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-14 16:25:55
i tried switching roty and rotz. just got a different weird looking skeleton
17  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-08 23:19:37
for SMD x is left, y is forward, z is up.
in anim8or, x is left, y is up, z is forward.
how do i convert rotation between these 2 systems?
18  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-08 20:36:07
thanks. too bad ani2pov can't save anim8or files with a skeleton.
I'm going to try asking on the anim8or forum for some insight.
19  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-08 00:43:24
the translation component of the matrix wouldn't have any effect, would it?
where did you get that code from?
20  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-03 21:52:20
According to https://developer.valvesoftware.com/wiki/Studiomdl_Data the angles given are in radians.
21  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-02 16:11:40
no joy. would it be a problem if the coordinate systems ware different? I would think the result should at least look like the input, but oriented along a different axis.
22  Game Development / Game Mechanics / Re: SMD skeleton problems on: 2014-11-02 14:28:46
sorry, that didn't work.
I think the problem is with the orientation code.
23  Game Development / Game Mechanics / SMD skeleton problems on: 2014-11-01 21:41:44

I am attempting to convert the skeleton from a source engine SMD file to an anim8or an8 file.

The SMD file contains a position of the end of the bone relative to the parent and 3 euler angles for orientation, rotation order is X,Y,Z
the an8 format uses a bone length and quaternion for orientation.


this is the code i'm using.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
for(int x=0;x<bones.size();x++)
      {
         smdbone sb=bones.get(x);
         
      Quat4f orientation= new Quat4f();
      float length;
     
     
      Quat4f xrot=new Quat4f();
      xrot.set(new AxisAngle4f(1,0,0,sb.rotx));
     
      Quat4f yrot=new Quat4f();
      yrot.set(new AxisAngle4f(0,1,0,sb.roty));
     
      Quat4f zrot=new Quat4f();
      zrot.set(new AxisAngle4f(0,0,1,sb.rotz));
     
     
      orientation.set(xrot);
      orientation.mul(yrot);
      orientation.mul(zrot);
     

      String pname;
         if(sb.parent==null)
         {
            length=2;
            pname="root";
         }
         else
         {
            length=new Vector3f(sb.x,sb.y,sb.z).length();
            pname=sb.parent.name;
         }
         
         
         Bone b = new Bone();
         b.name=sb.name;
         b.length=length;
         b.orientation=orientation;
         
         fig.getbone(pname).subbones.add(b);
         
      }


the Bone and smdbone classes represent an8 bones and smd bones respectively. I have verified that my SMD loading and an8 save code works properly.

so far the results I've been getting in no way resemble the input.
any ideas what's going wrong?

thanks!
24  Discussions / Miscellaneous Topics / Re: What are Anti-Virus Developers Protecting us From? on: 2014-04-21 17:13:35
my school had McAffee, which constantly deleted the debugger ( and you couldn't tell it that the file was benign). then we switched to Norton, which filled the whole hard drive full of log files. 40 gigs worth.

the only time i've had a virus was the FBI moneypak, which i had to remove manually.
25  Discussions / Miscellaneous Topics / Re: We need more website like www.staggeringbeauty.com on: 2014-04-21 16:45:04
WHYYYY?? i get migraines just fine without the help
26  Games Center / Featured Games / Re: Attack of the Gelatinous Blob on: 2014-01-01 17:33:28

Yea the jump is awkward. The way it is built now there is no way to smoothly increase the blob size. At least no easy way I can think of. If it becomes annoying I might rebuild it with another technique.

how do you currently make the blob grow?
27  Discussions / General Discussions / Re: Bad Habits on: 2013-12-05 02:05:09
i always use public fields
no indenting
hopefully college cs will break me of these habits
28  Discussions / General Discussions / Re: Java++ on: 2013-12-05 00:59:05
oh nice. now i can implement some operators for vecmath. the way all the arithmetic methods change the value of the object instead of returning a new one is completely screwy.
29  Discussions / Miscellaneous Topics / Re: Another Stupid, Stupid Mistake... on: 2013-11-27 15:38:17
i was getting exceptions trying to load an8 files because i didn't realize that there could be multiple points and texcoords per line of the file
30  Discussions / Business and Project Management Discussions / Re: (idea) game maker with lobby to download and upload other games created on: 2013-10-27 17:23:12
What, really, is he purpose of this thread?
Pages: [1] 2 3 ... 18
 
BurntPizza (31 views)
2015-02-27 06:09:35

BurntPizza (23 views)
2015-02-27 05:56:17

Riven (16 views)
2015-02-27 02:34:15

Riven (22 views)
2015-02-27 01:47:26

Riven (21 views)
2015-02-27 01:46:04

BurntPizza (17 views)
2015-02-27 00:52:04

BurntPizza (19 views)
2015-02-27 00:50:29

Riven (38 views)
2015-02-26 23:38:45

Riven (15 views)
2015-02-26 23:37:24

BurntPizza (33 views)
2015-02-26 21:13:04
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27
java-gaming.org 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‑gaming.org
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!