yothsoggoth's Profile User Rating: -----

Reputation: 17 Tradesman
Group:
Contributors
Active Posts:
42 (0.06 per day)
Joined:
19-June 12
Profile Views:
1,186
Last Active:
User is offline Today, 02:48 PM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
50

Latest Visitors

Icon   yothsoggoth has not set their status

Posts I've Made

  1. In Topic: Storing Dynamic Objects

    Posted 18 Apr 2014

    View PostMr_Fraggs, on 18 April 2014 - 01:54 PM, said:

    But, then i'll have an ItemSystem to handle all of the item logic in the game. ( Picking up, putting down, using, etc ). So, if it wasn't clear, ( which is always possible with the way stuff pours out of my mind! ), i'm looking for advice for storing the class objects that HOLD the entity ID. Basically the object the entity represents. So, would it be more common to see that list of ten items held in one single list in Item System, or would it be more common to see those items held by their actual owners, like the Player's Inventory, Game World, etc.


    I see, in that case I misunderstood your question a little. I think I understand a little better now...

    I would say that it depends purely on the usage that you need from the "items". For example, if the ItemSystem needs to do something for which it needs every single item (e.g. loop through and update them or something) then the ItemSystem would need to store the list. If not, and the only thing that ever uses the items is their actual owners (e.g. Inventory, GameWorld, based on your examples) then only the actual owners need to store them.
  2. In Topic: Storing Dynamic Objects

    Posted 18 Apr 2014

    This is really something quite dependant on the rest of your architecture and usage.

    For example, if you never need to access only friendly NPCs, why would you bother to store them separately?

    There's no one best way to do this.

    One approach would be to store all entities in one container of entities, which makes entity messaging simpler as you don't have to find which container the entity belongs in every time you need to find it.
    Then, if you need to store a certain type of entity separately, store a list of UIDs that can be used to access those entities from the global list. The reason to store UIDs rather than pointers is so you're safe if the entity gets removed.

    Also, you didn't mention hash maps at all, so I thought I would add that you almost definitely want to be using a hash map to store your entities, mapped by their UIDs.
  3. In Topic: Best Job Possibilites? OpenGl or DirectX?

    Posted 13 Apr 2014

    After reading BBeck's post, it occurred to me that I wrote mine with the assumption that you specifically wanted to choose between DirectX and OpenGL. If not, then do consider something that's more beginner friendly instead (such as XNA as BBeck mentioned)

    Also, if you are completely new to OpenGL or DirectX, I would like to add an additional point to my recommendation of DirectX 10 - that the difference between D3D10 and D3D11 is fairly small, so I don't believe it will do you any harm to learn D3D10 first, with the help of the extra libs, and move to D3D11 quickly afterwards if you want to avoid being "behind".
  4. In Topic: Forge Modding MCP Setup Error on Mac

    Posted 13 Apr 2014

    You may find your help here, but I don't think it's very likely.

    You may be better of with a Minecraft/Forge/MCP specific forum.

    [Edit]
    This seems to be an incredibly common issue, according to Google.

    I'll give some links to help, but again, I don't think this is really the right place.

    http://www.minecraft...hp?topic=8245.0
    http://www.minecraft...forgemcp-error/
  5. In Topic: Best Job Possibilites? OpenGl or DirectX?

    Posted 11 Apr 2014

    Your best option is to simply learn one of them comfortably, then experiment with it and learn more about the graphics pipeline in general. Even if there were more jobs available using DirectX 10 or OpenGL 4 or whatever, that's only going to change eventually when those technologies change - so try not to limit yourself to only being useful with a single tool.

    That way you can learn the other a lot more easily if/when you need to, because you know exactly what you need achieve and how things work.


    In my personal opinion, DirectX (specifically D3D10) is a little easier to learn from scratch, because you don't have the fuss of deciding which other libraries to use with it, which often stumps people with OpenGL, and hinders them from learning which bits OpenGL is actually doing, and which bits the other library is doing.

    I specifically mention DirectX 10, because it still has a lot of the extra little functionality (the D3DX library stuff mostly) that is since deprecated in D3D11, for simple things like loading images and compiling shaders from files, and also because the .fx framework is a little easier for beginners and requires less effort to "architect" on the C++ side. You can still use most of these things with DirectX 11, but they come separate in various forms (such as the Effects11 library which you can now build yourself).

    Also, a the DirectX sample browser has lots of nice samples of full projects that you can use to learn. The GPU Gems books are pretty good for graphics too, and the samples in those use DirectX.

My Information

Member Title:
New D.I.C Head
Age:
21 years old
Birthday:
October 14, 1992
Gender:
Location:
England
Full Name:
Joe
Years Programming:
9
Programming Languages:
C++, C#, Python, PHP, Javascript, Java, VB.Net

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.robotgoblin.co.uk/
Twitter:
joeydotnet

Comments

yothsoggoth has no profile comments yet. Why not say hello?