Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 21 Mar 2004
Offline Last Active Apr 05 2015 08:41 AM

Posts I've Made

In Topic: Java - How to deal with Abstract Static functions

22 September 2014 - 07:35 PM

Thanks for the feedback. I'll look into instanceof, it looks like it will do what I need for the type, though I'll still face the same problem for other pieces of data (Such as UUID).


... if you expand your explanation and tell us why are you trying to do that ( compare the object types ) maybe we could help you to come with a better approach to your problem...

To be honest, I don't know quite yet, the id will probably be used as keys in a HashMap, but I haven't gotten that far yet. Partly I'm just trying to understand the language itself.


class Item {
abstract string getId();

class ItemA extends Item {
static string getId() {
return "ITEM_A";

string getId() {
return ItemA.getId();

Tried this, but I got the error "Duplicate Function"


For now I'll go with this; not as clean as I'd like, but functional

class ItemA extends Item
  public static final String id = "ITEM_A";
  public String getId()
    return id;

then call ItemA.id or i.getId()

In Topic: Two classes, same name - solution?

03 May 2013 - 01:28 PM

It doesn't look like a namespace issue, because they are showing the same namespace (a::A::A)

Could it be that the project is trying to compile the same class multiple times? (Do you have an include guard in the header?)

In Topic: Alternatives to singletons for data manager?

03 May 2013 - 01:19 PM

Ok, so a more generic version of the question: what is the best way to share the data between different classes that are completely un-related?

In Topic: Is a mesh a 3d model?

03 March 2013 - 09:25 PM

The mesh is the data describing the points that make up the object (This includes faces and edges). This is just one small part of the model.


"Model" is a generic term. It means any data related to drawing a 3d item onto the screen. Exactly what data this includes depends on the program or file format. In some case it might just be the mesh, although usually it also includes some of the following:

  • Material - the colours, shading models, and other things that determine how to apply lights and rendering
  • Textures - the images that are mapped onto the mesh
  • UV - co-ordinates that determine how textures are applied to the mesh
  • vertex groups - used to break the model into smaller chunks for special purposes
  • bones / armatures - used to link parts of the mesh to specific parts of animations
  • animations - how the mesh moves

... the list goes on, depending on what you're trying to do with the mesh.

In Topic: Making Blender files take up less space?

05 January 2013 - 09:50 PM

The difference is what actually gets saved. The 3ds file only saves the model data itself (geometry, materials, etc) while the blender file contains structures explaining the data as well (the so-called DNA structure) that guarantees both forward and backward compatibility. Add to this the workspace setup (tool settings, layouts, preferences, etc), the blender file actually contains far more data.

(To be very specific, the blender file is a direct dump of the internal data structure, while the 3ds is an optimized format to store only very specific data)