TOPIC_TITLE
stringlengths
4
128
CATEGORIES
stringlengths
13
48
POST
stringlengths
0
85.6k
ANSWERS
stringlengths
0
146k
Loading resources in a separate thread problems on some card
Graphics and GPU Programming;Programming
Hi,I'm trying to achieve asynchronous resource loading, i.e. textures, etc. are loaded in a separate thread (Loader) and all the rendering is done in the main thread (Renderer). The target platform is Windows XP or higher.I've seen many threads about this on this forum and I've successfully implemented it on my devel...
> Is the flow OK?Depending on what your loader worker thread does (e.g. whether it also decompressed the texture from some storage format like JPG) it may be a loading time improvement if you had 3rd thread - "file loader" with its queue of files to load.So, the process would go like this (all asynchronous):(1) the m...
Efficient 2D Drawing sorted system
Graphics and GPU Programming;Programming
Hello, the problem I have here is a bit difficult for me to describe so I'll try to be as detailed as I can be. I bolded the important part for those that understand the problem without a back-story.Back-story:Right now I've created an entity management system, every entity can be drawn through its own render() funct...
Using some spatial-partitioning scheme to quickly get a set of visible objects and then sorting the resulting set seems perfectly reasonable to me. I don't see the "pain in the ass" anywhere. Did you try it? ; I recently just did something like this for my engine. Using the spatial system, I quickly grab every dra...
Boost spirit & line/column numbers
General and Gameplay Programming;Programming
I know that boost.spirit has a wrapper-iterator that stores information about the current line and column, but is there a way to store that information during parsing? I need this information to verify some of the arguments (for example if a given font-type exists) in an additional step which I can't do with my spiri...
It's fairly easy:struct FileLocationInfo{std::string FileName;unsigned Line;unsigned Column;};typedef boost::spirit::classic::position_iterator<const char*> ParsePosIter;class ParserState{public:void SetParsePosition(const ParsePosIter& pos){FileLocationInfo fileinfo;fileinfo.FileName = ParsePosition.get_position().f...
Vairous php and mySQL game questions
Networking and Multiplayer;Programming
My other post about php/mySQL seemed to morph into a Q & A session about everything I could think of, so I figured I should start a proper post more suited to that purpose.First of all, I am following this tutorial series pretty closely. This is my first 'online' game attempt and I am not very familiar with php or m...
Why not store your monster data in one table? Normalizing your data like this means you have to perform two JOINs across three tables. It's fine if you want to use PHP and MySQL for this, but I don't think MySQL lends itself particularly well to this problem. ; I think your question falls into the category of desi...
Should I Register The Trademark For My Software?
Games Business and Law;Business
Hi,I have only registered the .com domain name for it right now, should I register the trademark too? What might happen if I don't register the trademark? Will I have to change my software's name and/or domain if someone else register the same name as trademark after the launch of my product?Thanks
The most important thing to do is ensure someone isn't already using that name for a software project (game?) and that there isn't already a trademark registered in the territories you want to sell in. You don't need to register a trademark in order to gain protection - you just need to use it (as in, sell the produc...
[web] Forum post submit button.
General and Gameplay Programming;Programming
I'm having a problem figuring out how to get my submit button to work right, basically the submit button calls a java script function which is suppose to write the post into a database but the only way I know to do this is with php. I tried this though I knew it would not work:<script type="text/javascript">function ...
Use an XMLRequest in &#106avascript to call a 'post.php' file.Personally I would use jquery;Quote:Original post by SteveDeFacto...I'm having a problem figuring out how to get my submit button to work right, basically the submit button calls a java script function which is suppose to write the post into a database but...
Getting My Feet Wet
For Beginners
Well I was wondering if this site was a good place to get started in game design? Basically I just want to help with making a game in my free time. All I can do is some decent 3d modeling. I know nothing about coding. I am just a high school cad student that wants to take things further. I was just kind of hoping to...
Quote:Original post by UnmentionedWell I was wondering if this site was a good place to get started in game design? Yes. It is very good place. If you stick around, I think you'll find that this place is an excellent resource for game development.Quote:Original post by UnmentionedBasically I just want to help with mak...
Gamer's Guilt -- Forgetting your Code?
For Beginners
I am suffering from Gamer's guilt.I spent a month writing a bunch of cool classes and now that they are working and I am moving on to a new phase of my project I find that there are 50 things I wish I had done differently with my code. :(This is new to me since I am working on my 1st "Big" project where I actually ha...
My strategy is to only rewrite something when it is necessary to support new functionality that I want or to fix a bug. ;Quote:Original post by StoryyellerMy strategy is to only rewrite something when it is necessary to support new functionality that I want or to fix a bug.I am being forced to take a similar approa...
AS3 Developers needed for small game
Old Archive;Archive
Hi,We are currently looking for some feelance developers who are fluent in AS3 and potentially know how to use Box 2D to develop some of our games.We are an experienced flash game development company based in Staffordshire but our studio is getting very full so we are looking for people who can demonstarte great AS3 ...
[pygame] Getting a sprite drawn
Engines and Middleware;Programming
My code is as followsimport os, sysimport tracebackimport pygame as pgdef main(): succes = pg.init() if not succes == (6,0): print success screen = pg.display.set_mode((640, 480)) player = Player() group = pg.sprite.Group(player) running = True while running: group.draw(screen) pg.display.f...
You need to define where you want the sprite to be drawn:class Player(pg.sprite.Sprite): def __init__(self): pg.sprite.Sprite.__init__(self) self.image = pg.Surface((200, 200)) self.image.fill((128, 128, 128)) self.rect = self.image.get_rect() self.x = 100 # set the x attribute self.y = 100 # set th...
Books on Circle/Sphere Geometry?
Math and Physics;Programming
Just out of interest, anyone know of good reference books, focusing on circle and sphere geometry calculations? Bit like a formula cookbook! Suggestions appreciated. :)
If a book on spheres does exist, it would likely just be a pamphlet. The only query I've ever had to worry about is to see if a point was on or in an ellipsoid.I'm sure books on analytic geometry as a subject are all over the place. (Google it, I got many results.) I have my doubts on books just covering spheres, tho...
Deferred rendering and antialiasing
Graphics and GPU Programming;Programming
I'm thinking of switching to deferred rendering for my game, and this gave me an idea...Say we lay out the G-buffer and we use deferred rendering to calculate only the lighting, and saving it into an HDR buffer. We can perform bloom in that buffer if we want. After that, we do only one additional pass, rendering the ...
That's almost how light-pre-pass works, which is becoming popular on consoles now-a-days for deferred+MSAA =DYou create a GBuffer with depth, normals (and spec-power if you can fit it in), then use that to generate a Lighting Buffer (RGB = Diffuse light, A = specular). To keep the buffers small, you don't get properl...
Game Making Tool
For Beginners
HI forum , I am new to game programming.I want to prepare an Game making tool software, like Game Maker , Multimedia fusion 2 etc. for this i made search on google i found many game engines . some are with source code. but i am not able to execute those to check whether the code useful to me or not .the game software...
I don't undestand.You want to make a kit?Or you want a kit to make a game?Don't go making an engine or a kit if you have never even made a game. ; Do you want to know HOW to develop games? what tools to use? there are many, but theese are free and fully functional.Here is a software do develop c++ applications/ ga...
Sending large data through TCP winsock
Networking and Multiplayer;Programming
I've been busy with Winsock for a while now, creating a program that sends snapshots of the desktop through a socket to the client.Everything works when I'm trying to send small packets of data through the socket, stitching the packets back together works! This means I can send small packets of data (the rectangle of...
Do not use "asynchronous" or "event" sockets in WinSock. Both models are inefficient and full of problems. Instead, use either good-old select(), or tie socket operations to an I/O completion port.; I just wished I heard that a bit earlier. I guess I'll be recoding the entire thing over the next couple of days, than...
What books did developer read for game development in the 1990s?
For Beginners
I want to make a game But I wonder how game developers worked in the 1990s, how they made games, how they learning before the Internet became as widespread as it is today. etc.how do they know how to build game mechanics as character ability power up system?how they know to reverse engineering game competitor company.w...
As far as I know (not being a programmer myself), books on the subject started appearing in the early 2000s. Up to that point, it was “learn by doing” and tips from one another. ;The first book that came to mind was Tricks of the Game-Programming Gurus: Lamothe, Andre, Ratcliff, John, Tyler, Denise: 9780672305078: Amaz...
Choosing a career in AI programmer?
Games Career Development;Business
Hello everyone, my name is Ramon Diaz; I am currently studying Game development and programming at SNHU. I have taken the initiative to learn about a professional career in AI programming. I have a lot of gaps in my development in the short term. I have blueprint experience with AI but not enough to choose a career in ...
Entry level? Know your algorithms, it will help you at interviews. If you have made demos it can help you get jobs, but the market is wide open right now and should be relatively easy to find work for the foreseeable future. Overall, it reads like you are on the right path. When you graduate and start looking for work,...
Newbie desperate for advice!
Games Business and Law;Business
Hi allI'm new to the game development community and need some advice.I've created 2 educational games with a simple idea but are sufficiently challenging for all ages. These could be played on pcs or phones.Is it worth patenting any parts of the games?What would be the best way to monetize?How should I market the games...
hendrix7 said:I'm new to the game development communityReally? Your profile shows that you've been a member here since 2004, and your last activity was in 2007, asking about raycasting.hendrix7 said:Is it worth patenting any parts of the games?Probably not. Expensive and there will be hurdles, and possible lawsuits aft...
Hi I'm new. Unreal best option ?
For Beginners
Hallo everyone. My name is BBCblkn and I'm new on this forum. Nice to virtually meet you 🙂. One of my biggest dreams is to make my own videogame. I love writing design as in text on how my dream game would be. Now I got no skills to create it. But who knows what life will bring. Is Unreal the best program to have fun ...
BBCblkn said:My name is BBCblknI am truly sorry for you. Even Elons daughter has a better name than that.BBCblkn said:Is Unreal the best program to have fun with an experience ?Give it a try, but it's not meant for total beginners.Starting small always is a good idea. 2D is easier than 3D. You could try GameMaker, lear...
How to publish a book?
GDNet Lounge;Community
Hello, So, over the holidays I finished my 1st book. Do any of yall writer types know where I can find:an editorpublisherIt's like 99% done, just need to know what to do next. Also, it's cross genre, so it doesn't necessarily fit the standard model.
You've given nowhere near enough information to get a final answer, but I can suggest next steps for you. (For background, I've worked as an author, co-author, editor, and ghostwriter on 9 books so far.)Publishing is a business deal. You need to figure out what business services you need.Do you even need a publisher? D...
First-person terrain navigation frustum clipping problem
General and Gameplay Programming;Programming
I am trying to develop first-person terrain navigation. I am able to read a terrain and render it as well as to move around the terrain by interpolating the location of the camera every time I move around. The main problem I have is that depending on the terrain, i.e. moving on a sloping terrain, the near plane clips m...
I believe this can aways be an issue. I mean if you are clipping to a near plane and that plane passes through geometry, it has to do something. That being said you technically don't have to clip to a near plane at all, however many graphics APIs require it. Another other thing to consider is once you have collision ...
strange speed problem
For Beginners
I was tinkering with code for an SFML C++ project and suddenly everything except my avatar started moving extremely slowly. I looked at the performance tab and I had plenty of memory and cpu. I tried for hours removing everything and starting and stopping the program but nothing would speed it up. I didn't notice any...
Could you tell us what was running slow?if it was your computer, just try a restart your computerif it was your IDE, first try to restart the IDE, else: restart your computerassainator
[.net] vb.net logger question
General and Gameplay Programming;Programming
heey all,At the moment i have a logger* in my program. (* I don't know what it name is, it writes all actions to a file.)The only problem is: The data is only written to the file when it is closed properly. (streamWriter.close() (replace streamWriter with var name)) This is done when the application is end's as it sh...
First quick answer:Use the Flush method after each Write. That will solve your problem.Second answer:Have a look at the Tracing classes in .NET. There is a class that will do all of this for you by simply configuring it. ; Another solution is to use exception handling, by using the Try/Finally statements:logger = ...
[Solved]My model is rendered one half from the front and the other half from the back
For Beginners
Hi i made a human face and when i render it i saw one half of the face from the front and the other half from the back, here is a capture changing from z to -z the eye vector:http://img696.imageshack.us/g/57765909.png/[Edited by - jor1980 on December 28, 2009 5:09:32 PM]
Are the normals on half the head reversed? Possibly during mirroring? ;Quote:Original post by DerangedAre the normals on half the head reversed? Possibly during mirroring?In my FVF i didn´t use normals, here i leave you the code to you to see if there are something wrong.Imports Microsoft.DirectX.Direct3DImports Mi...
Visual Studio Macros for the Game Programmer
Old Archive;Archive
Comments for the article Visual Studio Macros for the Game Programmer
Excellent article, very useful and inspiring. Thank you! ; Nice introduction to Visual Studio Macros. I've never done anything with them before but I'm really planning to after reading this article.I just tried your example:Sub Signature() Dim sel As TextSelection = DTE.ActiveDocument.Selection sel.Insert("MikeC...
sfml mouse coordinate problem
For Beginners
heey all,lately i was trying to use the mouse more in my app. I use sfml to handle input, graphics and display.i'm using the following code, the X code display's properly, tough the Y code stays at 512. even stranger is that the windows is only 500 pixels high.....int main(){//create a SFML windowsf::Window App(sf::V...
Looks like you're using the Mouse Button field of the Event, when you should be using the MouseMove field. ; Thanks, that solved the problem.assainator
Render to texture Reply Quote Edit
Graphics and GPU Programming;Programming
Hi guys,I'm new to DirectX, and now i have to render some scene to a texture, and then i will have to work with these texture.I have try to write a function to render a simple Box to a texture. Then i will use this texture to render the box again, using the texture above to this new BoxThis is my code<CODE>void Rende...
1. If you render the box mesh to the screen, rather than to a texture, does it render correctly?2. Do you set the viewport somewhere other than the posted code?3. Do you create the normal render buffer using D3DFMT_A8R8G8B8 also? ; I figured out my mistake when i created D3DXCreateRenderToSurface inside this funct...
2D diagram
Graphics and GPU Programming;Programming
I'm not developing a game, but I haven't been able to get a satisfactory answer elsewhere and I figure this is where the graphics experts are.I need to display a large number (thousands or tens of thousands) of points in 2D space with lines connecting pairs of points. The user needs to be able to zoom (preferably "i...
(thousands or tens of thousands) is n't a big number for 3D rendering, but OpenGL doesnot support 2D rendering originally. If you are sticked to OGL, you can try to extend any of the open src 3D engines. It would take several thousands of lines.With Win Vista/7, maybe You can try the Direct2D. I just read a little of t...
Adding a road to terrain
Graphics and GPU Programming;Programming
How would you go about adding a road to a terrain generated with a heightmap? i tried just creating some triangles and adding a road texture to it, but because my road coordinates are singles(or floats in c#) it can be places anywhere so the terrain pokes through it in some places... I also tried drawing to a texture...
C++ Book
For Beginners
I was wondering what book I should read next after C Plus Plus for Dummies? I am currently reading it and it is a rather confusing book, even with Basic experience. Any advice would be appreciated.
From personal experience, I wouldn't recommend the Dummies books. My Dad was a director (retired recently) at the company that publishes them. He agreed with me over Christmas dinner that they weren't very good (although I guess it depends on the author).I am in a similar position to you on the experience front. I am...
Color Theory Final
GDNet Lounge;Community
Hi, I need your guys help for a color theory final. I have a survey about Game art covers and what kind of emotion they invoke in you, and how the difference might correlate with Rated everybody and rated mature games.It would really help me out :)Part 1:http://www.surveymonkey.com/s/6ZY8HHYPart 2:http://www.surveymo...
Any takers are much appreciated! ; So as a survey taker should I be basing my emotional response only on the colors or on the subject matter and content as well? I tried to just stick to colors during the first survey but I know I have a tendency to look at subject and content just out of habit which may easily bi...
How to design a pseudo 3d game?
For Beginners
Currently, I'm making a 2d platform game in C++ with Box2d for physics.I have an EntityManager class, which is basically an entire instance of the game encapsulated. In addition to updating and drawing entities, it transforms input into commands for the player, plays music, saves the game, etc. When the player enters...
Draw on texture in HLSL
For Beginners
Im new to xna and dont understand some of it so bare with me :P i have a project where i need to draw a road on some terrain. i tried just creating some triangles with a road texture but it didnt work very well because the terrain would poke through in some places, so i decided the best approach would be to draw the ...
Retrieving Window UI graphical components
General and Gameplay Programming;Programming
I'm doing a gpu accelerated ui interface and I want some of the controls to have the same feel as the current Windows theme. I'm wondering how I can do this, or how I can get the images that Windows uses to draw its user interface.
This article should shed some light on the question [smile]
Hex Numbers... O_o
For Beginners
Hex numbers go 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F But after 9, what numerical values do the letters have? Is it going 10, 11, 12, 13, 14, 15, 10, 11, etc?
Yes, 0x0A (base 16) equals 10 (base 10); Hex -> Decimal system conversion table:A -> 10B -> 11C -> 12D -> 13E -> 14F -> 15But 10 in hexadecimal means (1 * 16 + 0)=16 in decimal system thus SIXTEEN.The same for 11 in hexadecimal that is (1 * 16 + 1)=16 in decimal system thus SEVENTEEN.In hexadecimal (and ...
Cloth in MMORPG game
For Beginners
Sorry for my bad English.Hello I made my character for my MMORPG game. It doesn't has any cloth so I want to make cloth, shorts, hat, etc. I don't want to bind these in modeling tool. I know I must separate it and bind it when program but if I set cloth position same character when my character playing animation e.g....
I assume you want cloth on your characters, but you are separating it out into another file for the sake of being able to turn random clothing items on and off. The best you can do, if you don't want to simulate it, is to have matching animations for cloth. So, you'd animate the cloth along side every animation for y...
Game Dev Think Tank
Old Archive;Archive
Team name:Game Dev Think TankProject name: none yetBrief description:Hello, my name is Nick Rodriguez. I am looking to put together a think tank of passionate game developers of all different skill-sets. As a group, we will design, develop, and sell video games and video game technology using C++ with DirectX/OpenGL. M...
Programming Language - 3d games
For Beginners
I was wondering what programming language I should learn first if I want to get into programming 3d games.I am pretty new to programming although i do now a little bit of visual basic.net but other then that there is nothing else
If you are on windows C# and XNA Game Studio will work. Very easy setup to use.I would recommend focusing on learning C# first tho. The download for XNAGS and Visual C# express 2008 are both on this link below.XNA GS; C++ is the language that is widely used for 3D game programming. If you go for Java, there's a gr...
Need some advice
Engines and Middleware;Programming
I have started working on my own MMO Engine. I have a working Authentication Server, World Server, Client, AI Client. They all work together and you can have multiple people on the serevr, see each other, and talk to each other. I got discouraged on it when I ran into some problems with getting combat working and so ...
One vote for continue.Best to know exactly how your engine works and fix problems, than trying to find work-arounds for other engines.Looks like if you go down the premade engine route more problems will arise.But hey, might work for you, just thought i'd give my 2 pence.PureBlackSin ; Thanks. I really am thinking...
[HLSL] [XNA] Diffuse light direction doesn't work correctly.
Graphics and GPU Programming;Programming
Hi folks,I am currently trying to implement some simple diffuse lighting into my game and have come across a odd problem.The direction of the light produces incorrect results.Currently I have the following inputs, along with my vertex and pixel shader:struct VertexShaderInput{ float4 Position : POSITION0; float...
Well the "L" vector in your typical diffuse lighting calculations actually refers to a vector that points from your surface towards the light...this is because your normal also points away from the surface. So for a directional light you should actually use the opposite direction you want the light to face. Also on...
Parse a texture type from a text file
Graphics and GPU Programming;Programming
So for the past week I have been doing my best to create a way to load my game from a map file. So far, so good actually, except I have run into one little snag. I am trying to use my text file to tell my game which LPDIRECT3DTEXTURE9 to use, and it will not work. On a related note, I decided to use a third party par...
Quote:Original post by gothiclySo far I have gotten it to use a string that converts to a LPCSTR to get the texture location, but I have no idea of how to get the LPDIRECT3DTEXTURE9 to load... I tried a reinterpret_cast<LPDIRECT3DTEXTURE9>(with an lpcstr) and it returns an error. That's not how you load textures :) Rig...
a* on 3d enviroment
Artificial Intelligence;Programming
Hello,I'm trying to implement A-Star Pahtfinding on 3D enviroment (triangles).I have a set of triangles (a triangle represents a NODE) with connections between them (neighbours) all setup and ok.Now, to make it more faster i've created a NxN matrice in wich i have precalculated distances between center's of the trian...
Hi, you may want to place your code between the source tags (http://www.gamedev.net/community/forums/faq.asp#tags). ;Quote:Original post by leet bixHi, you may want to place your code between the source tags (http://www.gamedev.net/community/forums/faq.asp#tags).all done. thank you. please escuse me , im new to thi...
AP Computer Science?
Games Career Development;Business
Hey there everyone. Merry Christmas. I just thought I'd ask for some information on AP Computer Science seeing as my school does not offer it but one is allowed to take the exam without taking the class and I may self-teach ( I wouldn't take the exam until Spring of 2011 as I'd have to learn everything in a very smal...
Have you checked the official description? Here it is for Computer science A: http://www.collegeboard.com/student/testing/ap/sub_compscia.htmlThe exam isn't too hard. I didn't take it, but I had planned on it. It turns out my school didn't do the necessary paperwork on time to order the exams and didn't tell me until...
C++ Struct constructor problem
General and Gameplay Programming;Programming
Hello all,I have a little problem that's been nagging me, and I'm hoping somebody could shed some light on it. I have a simple struct declared/defined as so:struct XFileInfo{XFileInfo(): is32BitFloat( false ),isText( false ){}bool is32BitFloat;bool isText;};And then I create an instance of this struct on the stack w...
XFileInfo info(); <-- Function declaration (note: declaration, not definition).XFileInfo info; <-- variable declaration and construction. ; This line:XFileInfo info();This is a function declaration. C++ allows functions to be declared inside other functions. You can rewrite it as:XFileInfo info;Which is does call ...
Mobile Gaming ISV Kickoff Event at CES
Your Announcements;Community
On behalf of Connectsoft and event co-hosts Dell and Broadcom, we would like to invite game and mobile application developers to our ISV Kickoff Event at the Consumer Electronics Show in January to introduce a new wireless application platform. Please contact me at the following if you are interested in attending an...
[win32/c++] Displaying Bitmap causes crash
General and Gameplay Programming;Programming
HelloI have made a simple win32 application that converts temperatures.Problem:I am displaying a bitmap image in a static control that is scaled usingStretchBlt(). But when the application runs it goes into an infinite loop,doesn't display the bitmap & crashes.I believe the problem is either to do with the static win...
Give us some hints :)What information does the crash give you? Accessing an invalid memory location? If so, what location? What line does the crash point to?Also, try putting your code in [source] .. [/source] tags. ; That is not the correct way to use SS_BITMAP. Currently, you are trying to render the bitmap in t...
Where do I get an artist from?
2D and 3D Art;Visual Arts
Hi!I've made a nice flash game, and now looking for graphics.I intend to pay.It's more about user interface graphics since it's a card game, so, no sprites whatsoever.Note that this is probably going to be considered "version one" graphics, and more work might come afterwards.Is there a recommended website/company/ar...
If you're looking to recruit an artist, you'll want to post in the Help Wanted forum while following the mandatory posting template. Good luck! ; You can also try the pixeljoint forums. They have a ton of people who specialize in pixel art.I don't know what type of game you've made however...http://pixeljoint.com...
Isometric engine
Graphics and GPU Programming;Programming
Hello,I have recently been working on a isometric engine in XNA. I have rendering working but on large maps (on my computer at about 500x500) is starts getting sluggish. The problem is the fact that all tiles are drawn regardless of whether they are on the screen.Right now I am looping through the entire array of til...
You could implement some hierarchy like a quadtreeThis way, at the top level, you'll have 4 nodes to test for visibility, and rejecting one will reject 1/4 of all the tiles in your worldAlternatively, and probably a better approach is to calculate the tile at the top-left and bottom-right of the screen, and loop over...
Problems rendering to a surface
Graphics and GPU Programming;Programming
I'm porting my 2D game engine from SDL/OpenGl to DirectX 9.0c. I need to be able to create bitmaps and blit stuff on them, so I figure I need to render to a surface.I'm using the ID3DXRenderToSurface interface to handle the details about rendering. Problem is, this is VERY slow. I suppose it happens because my textur...
Anyone? I'm sorta blocked on that issue. ; Render on the D3DPOOL_DEFAULT surface, then copy it to a D3DPOOL_SYSTEMMEM surface yourself when you need it.And clear the surface after setting it before you do any rendering on it to avoid seeing video memory dumps.
C/C++ programmer wanted for 2D SRPG project
Old Archive;Archive
Team NameCurrently untitledProject NameCurrently untitledBrief DescriptionA relatively small 2D fantasy SRPG project influenced by Exile, Fallout, Disgaea, Diablo, the Elder Scrolls.Target AimFree and possibly open source (will be discussed).CompensationExperience and an addition to your portfolio!TechnologyTarget plat...
What books did developer read for game development in the 1990s?
For Beginners
I want to make a game But I wonder how game developers worked in the 1990s, how they made games, how they learning before the Internet became as widespread as it is today. etc.how do they know how to build game mechanics as character ability power up system?how they know to reverse engineering game competitor company.w...
As far as I know (not being a programmer myself), books on the subject started appearing in the early 2000s. Up to that point, it was “learn by doing” and tips from one another. ;The first book that came to mind was Tricks of the Game-Programming Gurus: Lamothe, Andre, Ratcliff, John, Tyler, Denise: 9780672305078: Amaz...
Choosing a career in AI programmer?
Games Career Development;Business
Hello everyone, my name is Ramon Diaz; I am currently studying Game development and programming at SNHU. I have taken the initiative to learn about a professional career in AI programming. I have a lot of gaps in my development in the short term. I have blueprint experience with AI but not enough to choose a career in ...
Entry level? Know your algorithms, it will help you at interviews. If you have made demos it can help you get jobs, but the market is wide open right now and should be relatively easy to find work for the foreseeable future. Overall, it reads like you are on the right path. When you graduate and start looking for work,...
Newbie desperate for advice!
Games Business and Law;Business
Hi allI'm new to the game development community and need some advice.I've created 2 educational games with a simple idea but are sufficiently challenging for all ages. These could be played on pcs or phones.Is it worth patenting any parts of the games?What would be the best way to monetize?How should I market the games...
hendrix7 said:I'm new to the game development communityReally? Your profile shows that you've been a member here since 2004, and your last activity was in 2007, asking about raycasting.hendrix7 said:Is it worth patenting any parts of the games?Probably not. Expensive and there will be hurdles, and possible lawsuits aft...
Hi I'm new. Unreal best option ?
For Beginners
Hallo everyone. My name is BBCblkn and I'm new on this forum. Nice to virtually meet you 🙂. One of my biggest dreams is to make my own videogame. I love writing design as in text on how my dream game would be. Now I got no skills to create it. But who knows what life will bring. Is Unreal the best program to have fun ...
BBCblkn said:My name is BBCblknI am truly sorry for you. Even Elons daughter has a better name than that.BBCblkn said:Is Unreal the best program to have fun with an experience ?Give it a try, but it's not meant for total beginners.Starting small always is a good idea. 2D is easier than 3D. You could try GameMaker, lear...
How to publish a book?
GDNet Lounge;Community
Hello, So, over the holidays I finished my 1st book. Do any of yall writer types know where I can find:an editorpublisherIt's like 99% done, just need to know what to do next. Also, it's cross genre, so it doesn't necessarily fit the standard model.
You've given nowhere near enough information to get a final answer, but I can suggest next steps for you. (For background, I've worked as an author, co-author, editor, and ghostwriter on 9 books so far.)Publishing is a business deal. You need to figure out what business services you need.Do you even need a publisher? D...
First-person terrain navigation frustum clipping problem
General and Gameplay Programming;Programming
I am trying to develop first-person terrain navigation. I am able to read a terrain and render it as well as to move around the terrain by interpolating the location of the camera every time I move around. The main problem I have is that depending on the terrain, i.e. moving on a sloping terrain, the near plane clips m...
I believe this can aways be an issue. I mean if you are clipping to a near plane and that plane passes through geometry, it has to do something. That being said you technically don't have to clip to a near plane at all, however many graphics APIs require it. Another other thing to consider is once you have collision ...
Beginners Learning Team/Study group
Old Archive;Archive
**EDIT** We now have a Google Group @ http://groups.google.com/group/the-dev-academyGreetings everyone. First off, I would like to thank everyone who provides helpful information or insight on this forum. These tips have helped me begin my long and arduous journey into programming and game dev. On behalf of all newbs...
Good idea! One thing you might want to do is see if you can get one or two experienced managers/developers/artists to act as mentors. This will help the project get moving and allow others to benefit from the mentors experience.EDIT: *cough* I should pay more attention *cough*Quote:Any veterans of these areas who wou...
dynamic_cast & Limiting Function Calls?
For Beginners
Here is my class hierarchy:<br /><br />I'm using dynamic_cast like this:if(GetComponent("Model") == 0) {AddComponent(Factory.MakeComponent("Model"));mModel = dynamic_cast<Model*>(GetComponent("Model"));mModel->AddImage("Logo","RPG 17 Logo.png");This is just converting a Component to a Model. What if I wanted to conve...
Quote:Original post by rpg gamer 17I want the UnMovable class to only be able to use the setX function once. How would I do that? I know a singleton method but that's not going to help me much.I'm not an expert on casting through the inheritance tree, but I can see that the UnMovable's class' problem of only allowing s...
How do I move all points on a spline in the following situation?
Math and Physics;Programming
Currently I am updating all my points on a spline using a movement vector derived from the code below: // Destination node always remains the same Vector3 node = Vector3.Zero; Vector3 position_Start = spline_CatmullRom.point_List[node_Index]; // Set final position to current object position Vector3 position_Final = p...
Developer looking for 3D artist for FPS/RPG
Old Archive;Archive
I'm an indie developer who has worked on several commercial games including "Battle Cruiser Millennium" and "Purge". I have been developing a sci-fi FPS/RPG with open-world gameplay set on an alien planet. I am currently doing all development including programming, modeling, texturing, etc. But I realize it's time to...
Volumetric Light Scattering as a Post-Process (GPU Gems 3)
Graphics and GPU Programming;Programming
Hi!I'm haveing problems implementing Volumetric Light Scattering with DirectX 10 from GPU Gems 3 article "Volumetric Light Scattering as a Post-Process".I've read it several times, but I can't figure it out completely.I render all the occluding objects black, and a sphere (which is the sun) white, and saves it to a r...
Hi there,Please see this tutorial:http://www.mathematik.uni-marburg.de/~menzel/index.php?seite=tutorials&id=2The author used the same article and he made an excellent tutorial as well. Hope you find it useful. ; Hi b_thangvn!Thanks a lot for the tip!I managed to figure out how to implement it myself, so I now have...
My array is empty when filling it from another class
General and Gameplay Programming;Programming
Okay, this problem is driving me nuts and I'm sure the solution is simple, but I can't find where it is.I'm calling from some class A to a method in class B which fills an array (or a vector or a pointer, I tried them all) defined as an attribute in B, this method works fine and inside it the array/vector/pointer is ...
Post your code and we might be able to spot the error. It sounds like it's a matter of stack allocated containers going out of scope. But it's hard to give a definite solution without knowing your implementation.; Sounds like you pass the array by value where you should be passing by reference:bad:void foo( std::vec...
Displacement for games
Graphics and GPU Programming;Programming
There has been a lot of speculation regarding hardware tessellation and displacement support. Especially after Unigine Heaven benchmark release - http://unigine.com/press-releases/091022-heaven_benchmark/.I wanted to make sure is displacement suits our needs for upcoming game project but my 9600GT does not support DX...
Here is short video of this technology in real-time environment. Note that displacement task lasts 2-3 seconds, so you can't paint on the model like in ZBrush, it is not possible to animate displacement map or displace curved surface, etc.">
C++ and Code Page 437
General and Gameplay Programming;Programming
Hi there,I'm using a bitmap font in my application which is based upon the IBM code page 437 (http://en.wikipedia.org/wiki/Code_page_437).I'm having some trouble getting it to display the correct characters, however. Characters 0-127 display fine, but anything over that always displays an incorrect glyph. In most cas...
There are two potential problems that I can immediately think of.Are you sure you have the characters are encoded with the correct values? A character you want to draw may appear correct in, say, the editor, but it may not correspond to the same glyph in your character map.Arithmetics on the character codes may not b...
Overclocking laptop GPU or CPU
GDNet Lounge;Community
I'm buying a cheap laptop to get back into programming, been without a decent PC for quite a while now, and it's about time I got myself something new.I'm buying the Acer 15.6" AS5516-5474 Laptop PC with AMD Athlon 64 TF-20 ProcessorIt has a 1.6ghz processor and a radeon xpress 1200 integrated video card.Is overclock...
I would generally say that it's probably not safe. In my experience, most notebooks already push the limits in terms of heat generation, and the additional heat produced by overclocking is going to push it over. And there's not many options for customizing your heat dissipation (e.g. in a desktop, you can at least pu...
[MMO]Seeking 3D Artist and Programmer
Old Archive;Archive
Team name:Psy Sun StudioIndie game development studio from germany berlin.Project name:Moji - The Land of MojiBrief description:The project was started in summer 2009 but the plan todo so bugged me since i played "The Fairy Tale Adventure" back in 1989.Moji is a MMORPG "Massivly Multiplayer Online Role Playing Game", t...
I just don't understand why every man and his dog must create an MMORPG. What is your project about? I've reviewed your website (which looks like it was made today) and it looks like every single other fantasy MMORPG out there. What makes your project special enough that people will work for free and pay you for fund...
HLSL no FX
Graphics and GPU Programming;Programming
Hi,I'm coding a project in which i use DX10 (using shader model 4) and i don't use FX.The only sample of doing that in the SDK is quite poor in content.The part i'm missing the most in the documentation is, what is the "connection" between texture/sampler variable in the shader code and the ones i set in the DX API c...
The Effects system uses the shader reflection API to determine which slot each variable is using. You can also use reflection or to get around this, you can assign texture and sampler objects to specific register location in the HLSL code which allows you to assume the order from the API side. The compiler does not...
C++ Inline get/set methods
General and Gameplay Programming;Programming
Well, maybe someone asked this before, but I couldn't find it on the forums.I've been programming for a good amount of time, but I always had this doubt in my mind. If I declare a class data member as private and use inline get/set methods to access it, will I have performance gains? I mean, in terms of speed, will i...
Well, making the data public is the most straightforward way, and manipulations does not require a function call, so they CAN be faster (not the other way around that you wrote but probably didn't mean).But, when compilers inline the get/set methods for private data members, there is neither the overhead of calling a...
what brdf model should i use for a "mud" or "clay" effect
Graphics and GPU Programming;Programming
hello guys,i'm working on my sculpturing tool idea. i want to give the model a clay like appearance, or maybe a bronze like effect. but i don't know what kind of brdf model i should use.i'd like to show you some examples of the effect that i want to achieve:i especially like this effect, it looks to me like a bronze ...
i now have some screenshots to show to you.the first is the normal gl lighting, only it is a per fragment lighting in glsl:the second image is the cook-torrance lighting model, it looks like silk, not bronzemaybe i should try Oren–Nayar model instead? ; The effect you want is usually achived by using a blured cube...
DX9 fails on second CreateTexture
Graphics and GPU Programming;Programming
i got a problem when creating my own texture twice.IDirect3DTexture9* pDiffuseTexture = 0;IDirect3DTexture9* pNormalMapTexture = 0;HRESULT hr = 0;hr = g_pd3d9Device->CreateTexture(256, 256, 1, 0, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &pDiffuseTexture, 0)));hr = g_pd3d9Device->CreateTexture(256, 256, 1, 0, D3DFMT_A8R8G8B8...
I can't see a problem, but you're closing too many parentheses in the CreateTexture calls, which suggests that this is not your actual code.I'd suggest enabling the debug runtime (from the DirectX Control Panel application that comes with the SDK), and seeing if it prints anything about this error. ; Another vote ...
[C++/Lua] Can't get environment to recognize headers.
General and Gameplay Programming;Programming
I'm using Code::Blocks with the pre-compiled visual c++ luabind library that I downloaded from http://www.nuclex.org/articles/quick-introduction-to-luabind. I set Code::Blocks to compile using Visual C++ instead of MingW, and set up my files paths. It is necessary to include a header called luabind.hpp to use the lua...
Try replacing #include "luabind/luabind.hpp" with #include <luabind/luabind.hpp>.#include "" means search locally, #include <> means search globally though not all compilers enforce the difference.
D3DX10CreateMesh limitations?
Graphics and GPU Programming;Programming
I've created a project that loads a few meshes, then creates mesh objects with "D3DX10CreateMesh". I can load up about 4, then the program crashes on this line:if (FAILED(D3DX10CreateMesh(dxdev, layout, 4, "POSITION", numverts, numtris, D3DX10_MESH_32_BIT, &objects[ocount].mesh)))It seems like I can load 1 or 2 more ...
I tried this too:if(Failed(D3DX10CreateMesh(dxdev, layout, 4, "POSITION", numv, numt, D3DX10_MESH_32_BIT, &objects[ocount].mesh)))return 0;//--------------------------bool Failed(HRESULT hr){if(FAILED(hr)){const TCHAR*derr = DXGetErrorString(hr);const TCHAR*ddesc = DXGetErrorDescription(hr);MessageBox(NULL, ddesc, de...
How to know an application depend
General and Gameplay Programming;Programming
Like the develop helpful tools dependency walkerThe question isHow to know an application need the run time libraryfor example:I write an application that need the run time library:c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\MSVCR80D.DLL
Animating: Transforms and Deformers
Graphics and GPU Programming;Programming
I'm a little unclear as to how to make the associations between the weighting of the bones and the AnimationKey 4x4 matrix transform. Off of the top of my head I would find the difference between the rest pose of the character and the keyed frame with respect to the matrix values. I would then proceed to multiply t...
if I have one cube and one bone which will have one root and one effectorD3DXMatrixMultiply(&prodMatrix,&M1,&M2);for(UINT i = 0; i < numVerts; i++){D3DXVec3Transform(&newVertex,&Vertex,&matrixOffset);D3DXVec4Transform(&newVertex,&newVertex,&prodMatrix);VertDest=D3DXVECTOR3(newVertex.x,newVertex.y,newVertex.z);}where ...
Artist&Animator looking for Flash programmers
Old Archive;Archive
Hi folks,I'm looking for Flash programmers for my first game project, a fresh and ambitious 2D beat/shoot 'em up. At the moment I only have a few concrete things to show, but I've been honing the design of this game in my head for over a year. Ideally I would want to team up with people who know Flash thoroughly, as I'...
This project seems to have great potential and I wish you luck. However in order to get more people to take you seriously(Although If they look at your well written post and concepts they should take you seriously)You will need to follow the Mandatory Posting Template Sticky, that is found at the very top of the Help...
Graphic Design Service, Low Price
Old Archive;Archive
Hello, my name is Andrew YorkI am offering Low Price Graphic Design Services for Game DesignThe Rate is 12.00$ a hour but can work with you on cost, or creating set costs based on your needs and budget. I Have been doing 3D Graphic Design for 12 years and have worked freelance before, but just starting up again and w...
Are you sure this is the correct link to your portfolio?Because the work does not reflect on your 12 years of experience with 3D graphic.It looks more like someone with 3 months of experience would do, and $160 for the quality would seem ridiculous.Sorry if I am being a little harsh. ;Quote:Original post by mini_ch...
core 2 quad
GDNet Lounge;Community
I have noticed that when doing anything on my PC that core 1 2 and 4 stay below 5% until core 3 reaches at least 80%I'm wondering if this is normalmy third core stays about 9C above all others due to this, on all OSs.i'm mainly wondering why this core gets all the loadmy PC specs2.66 GHz Core 2 quad @ 3.01 GHz8GB 800...
Quote:Original post by ThooverI have noticed that when doing anything on my PC that core 1 2 and 4 stay below 5% until core 3 reaches at least 80%I'm wondering if this is normalmy third core stays about 9C above all others due to this, on all OSs.i'm mainly wondering why this core gets all the loadmy PC specs2.66 GHz C...
[web] Game client - mySQL db communication
General and Gameplay Programming;Programming
I'm currently working on a small game project and want to provide user statistics in a web frontend for the users. Getting the web/sql part done is no big deal but I'm having some trouble figuring out how I'd want the game client to transfer the data to the statistics server in a more or less secure way. I certanly d...
Quote:Original post by LilithiaI'm currently working on a small game project and want to provide user statistics in a web frontend for the users. Getting the web/sql part done is no big deal but I'm having some trouble figuring out how I'd want the game client to transfer the data to the statistics server in a more or ...
Diploma thesis
For Beginners
Hello :-) I am a student, and for my diploma thesis i am developing a racing game.The problem is that, making just the game is not enough.I have to do something special in my game ,for example applying AI algorithms or damage model. So , i would like to hear your suggestions :-)
The way you will be graded on this will be based on the technology you use not the scenario and your results have to be measurable. I'm sure you will have seen the terms qualitative and quantitative and if you haven't I suggest you start reading up on it.For my final year project I got a car to drive around a track o...
computing a dot product with very similar unit vectors
Math and Physics;Programming
Hi,I have a sphere in an application that has a very large earth scale radius. When I click a point on the surface I get the x,y,z point clicked and then make two vectors, one from the sphere centre (origin) to the camera position and one from the sphere centre to the click position. I use the arc cosine of the scala...
I'd try using the quaternion solution posted by jyk here. ; Thanks for that, it works nicely even with almost parallel vectors. :)
Issue with failing depth test
Graphics and GPU Programming;Programming
I'm currently working on a deferred renderer. In order to debug I've set up a system so I can render a single step in the render pipeline.I'm working on the first pass of the deferred renderer (color, normal depth) and going through each of the phases to verify I am retrieving the values. Everything seems to work alt...
I'm currently uploading a video of the issue to YouTube. I started rotating the geometry in the video and at certain points it looks like I have depth clipping issues and then the rest of the time everything looks fine.I'm thoroughly confused.YouTube video: >link[Edited by - CornyKorn21 on November 22, 2009 11:30:36 ...
Explosion Class (Particles lesson 19)
NeHe Productions;Affiliates
Hello,I have created a Explosion class based in the lesson 19 Nehe gamedev. In my program I load a texture to the background when I press the space bar the explosion is created and show but the background image is replaced by black color.I am using SDL with OpenGL, OpenGL draw all the graphics in the screen.What can ...
Quote:Original post by cHimuraHello,I have created a Explosion class based in the lesson 19 Nehe gamedev. In my program I load a texture to the background when I press the space bar the explosion is created and show but the background image is replaced by black color.I am using SDL with OpenGL, OpenGL draw all the grap...
*UPDATED:01/07/10*Development Team Looking for more for Survival Horror / RPG game.
Old Archive;Archive
Team Name: Cubed StudiosProject Name: “Plague”Description:**This project was originally titles: iNFECTED, due to legal issues and other circumstances, the original team disbanded and regathered to create a new project based on our original idea. Only the name has changed.**Plague has just started its first month of pl...
EDIT: There was an issue with the e-mail on the contact and application on the website. These issues have been resolved now. Still looking for a few more individuals who are interested in joining our team. ; BUMP:Still looking for more programmers and a few artists.
Language to make a learning type program
For Beginners
I want to create a basic learning program in Dakota and give it out around my area. Basically it'd show pictures of whichever word they choose, and then it'll have a fluent speaker say the word (I'll get that, too), and then they can just choose different words and have the speaker say the word.It's just going to be ...
Moving to For Beginners.What kind of experience do you have with programming, if any? ; I have some C++ experience as well as some Flash and just a tiny bit of Python. Thanks for moving this to the correct forum! ; Interestingly enough, I have been bouncing the same idea around as well and have been trying to d...
What books did developer read for game development in the 1990s?
For Beginners
I want to make a game But I wonder how game developers worked in the 1990s, how they made games, how they learning before the Internet became as widespread as it is today. etc.how do they know how to build game mechanics as character ability power up system?how they know to reverse engineering game competitor company.w...
As far as I know (not being a programmer myself), books on the subject started appearing in the early 2000s. Up to that point, it was “learn by doing” and tips from one another. ;The first book that came to mind was Tricks of the Game-Programming Gurus: Lamothe, Andre, Ratcliff, John, Tyler, Denise: 9780672305078: Amaz...
Choosing a career in AI programmer?
Games Career Development;Business
Hello everyone, my name is Ramon Diaz; I am currently studying Game development and programming at SNHU. I have taken the initiative to learn about a professional career in AI programming. I have a lot of gaps in my development in the short term. I have blueprint experience with AI but not enough to choose a career in ...
Entry level? Know your algorithms, it will help you at interviews. If you have made demos it can help you get jobs, but the market is wide open right now and should be relatively easy to find work for the foreseeable future. Overall, it reads like you are on the right path. When you graduate and start looking for work,...
Newbie desperate for advice!
Games Business and Law;Business
Hi allI'm new to the game development community and need some advice.I've created 2 educational games with a simple idea but are sufficiently challenging for all ages. These could be played on pcs or phones.Is it worth patenting any parts of the games?What would be the best way to monetize?How should I market the games...
hendrix7 said:I'm new to the game development communityReally? Your profile shows that you've been a member here since 2004, and your last activity was in 2007, asking about raycasting.hendrix7 said:Is it worth patenting any parts of the games?Probably not. Expensive and there will be hurdles, and possible lawsuits aft...
Hi I'm new. Unreal best option ?
For Beginners
Hallo everyone. My name is BBCblkn and I'm new on this forum. Nice to virtually meet you 🙂. One of my biggest dreams is to make my own videogame. I love writing design as in text on how my dream game would be. Now I got no skills to create it. But who knows what life will bring. Is Unreal the best program to have fun ...
BBCblkn said:My name is BBCblknI am truly sorry for you. Even Elons daughter has a better name than that.BBCblkn said:Is Unreal the best program to have fun with an experience ?Give it a try, but it's not meant for total beginners.Starting small always is a good idea. 2D is easier than 3D. You could try GameMaker, lear...
How to publish a book?
GDNet Lounge;Community
Hello, So, over the holidays I finished my 1st book. Do any of yall writer types know where I can find:an editorpublisherIt's like 99% done, just need to know what to do next. Also, it's cross genre, so it doesn't necessarily fit the standard model.
You've given nowhere near enough information to get a final answer, but I can suggest next steps for you. (For background, I've worked as an author, co-author, editor, and ghostwriter on 9 books so far.)Publishing is a business deal. You need to figure out what business services you need.Do you even need a publisher? D...
First-person terrain navigation frustum clipping problem
General and Gameplay Programming;Programming
I am trying to develop first-person terrain navigation. I am able to read a terrain and render it as well as to move around the terrain by interpolating the location of the camera every time I move around. The main problem I have is that depending on the terrain, i.e. moving on a sloping terrain, the near plane clips m...
I believe this can aways be an issue. I mean if you are clipping to a near plane and that plane passes through geometry, it has to do something. That being said you technically don't have to clip to a near plane at all, however many graphics APIs require it. Another other thing to consider is once you have collision ...
I should have made a backup.
GDNet Lounge;Community
I have been working on this project for the iPhone for quite a while now, and since iPhone stuff as far as I know can only be programmed on a Mac, I have been learning how to use a Mac as my workstation. The Objective-C language also took me awhile to get. I have gotten the hang of it for the most part, and it actual...
I once had a friend who tried to give me a program he'd found somewhere on a CD. The only thing on the CD was a desktop shortcut... ; Wow.This is one of the very good reasons for using source control even for personal projects. I learned this lesson in a different (but just as catastrophic) way a few years back. ...
Why would valve disable split screen coop play from left 4 dead for the PC.
GDNet Lounge;Community
Why would they disable split screen coop play for the PC versions of this games? It seems like that would cost them more to simply remove the feature then to leave it since I know it can be enabled with a simple config script and console commands. Any thoughts why?
Presumably because most PC users play with a keyboard and mouse. ;Quote:Original post by CodekaPresumably because most PC users play with a keyboard and mouse.This has nothing to do with it, you can still use a game pad, they just disabled the split screen and multiple controllers which as I stated before the sourc...
Macrion: The Beginning NOW IN OFFICIAL DEVELOPMENT!
Your Announcements;Community
It is now official, Abhiware is finally properly working on Macrion: The Beginning, and I will personally track our progress here for wannabe game creators or indies who are just starting up. Of course I can't share everything but I will share as much information as I can.What I have learnt in the past years could s...
Thank you for sharing this info. This is very useful, and interesting to read. ; USER REPLIES:-------------taby: You're welcome :) Keep reading on as I post new info about the first official game Macrion. You'll get to see the whole process from beginning to end so its a great experience.CONTINUED POST:---------...
Matching words with wildcards
General and Gameplay Programming;Programming
I'm not entirely sure if there is a fast, simple way to do this... I'm thinking regex is probably the simplest way of doing this. What I need to do is be able to compare strings that may or may not have wildcard characters in them.For instance I may have a list of >strings< like this:112251123?4862255*785??99745And I...
You could use a regular expression library like PCRE, however if you're only ever going to support '?' and '*', they're trivial enough to implement. If you encounter a '?', then skip the corresponding character in the match string since you don't care what it is. If you reach a '*', then you terminate immediately s...
New to programming, what to learn first?
General and Gameplay Programming;Programming
As the title says, I have basically 0 experience with any programming language. I'm looking for advice on what people would recommend I learn first, and if possible recommendations for educational materials for that language. I'll list some goals of mine that may help in formulating any advice.My main goal is to wo...
Quote:Original post by XoEnder... I'm looking for a language for scripting use in level design. I'm leaning towards python right now, but I don't have much of a basis for that decision...I can vouch for Python as a suitable first language - it's code is arguably more natural and easily human-readable than the average ...
C# - Accessing last element in a List.
For Beginners
Hi,I have a question about accessing the last element in a list. I am entering a function and creating a new sprite object which is stored into a List. I then need to access the sprite object I just added so I can further do work on it. I am stumped on how to make sure I access what I just added. // A collection of...
// A collection of sprite objects private List<Sprite> sprites; public void AddNewSprite(string filePath) { sprites.Add( new Sprite(this,appReference.GetContentManager())); Sprite sprite = sprites[sprites.Count-1]; sprite.LoadSprite(filePath); }; There's no need to get the last element if you just write co...
Questions about networking and open source networking libraries.
Networking and Multiplayer;Programming
Hello,I have some questions about networking and open source networking libraries.I am currently designing a 3D game engine and need to implement networking for it.I found Boost.Asio online and it appears to be a good open source networking library from what I heard and read about it.Question 1)Is Boost.Asio a good r...
Boost.asio is a very decent library, although the reactor paradigm can take a bit of getting used to if you aren't familiar with it.However, you should keep in mind that a game-oriented library such as RakNet will provide explicit support for essential services such as reliable messages, flow/congestion control, obje...
Focus lost(processing halts stops) when hover inside/out window boundaries
Graphics and GPU Programming;Programming
Hi guys,I have this weird problem and I don't understand what exactly is going on.I feel like it might have to do with how you set up openGL.So I create a window and I set the display and idle functions.I have cout statements in both of them printing display and idle respectively.Now when I rollout of the window(with...
Server communications
Networking and Multiplayer;Programming
I am planning to make a multi-node game server. But I can't actually figure out, how they communicate with each other. If one node is a login server and all other are seperate "shards" (or how do you call it), the haw do these shards know that user has logged in? One method would be to store the session in database, ...
One way to do this is a "state node"Example:Login_Node , State_Node, Shard1_Node , Shard2_Node ....Connection connects to login node.... Login_Node adds user updates State_Node to Connection State == Shard1_NodeLogin_Node then forwards connection to the Shard1_Node.Connection wants to go to Shard2_NodeShard1_Node upd...
VSM filtering
Graphics and GPU Programming;Programming
What's best practice for getting nice VSM shadows in OpenGL on recent hardware?1. Render to a MSAA renderbuffer and then resolve the renderbuffer to a standard FBO color texture (in OpenGL) and perform the blur on that FBO.2. Render directly to a MSAA texture and use GL_TEXTURE_2D_MULTISAMPLE to sample from the texur...
I would just resolve the MSAA texture right away...if you perform your blur on the individual subsamples it's going to cost you a lot in terms of performance. ; Resolving then blur is the easiest. There's one clever thing you can do by sampling the MSAA texture though ("custom resolve"), and that's converting from...
Creating game tools
General and Gameplay Programming;Programming
I was just wondering what toold people use to create their games. Right now I am makeing my own level desighner tool to make all my custome 2D maps so I dont have to write them out by hand. then all the levels can be loaded by my 2d engine automaticly.So what tools to other people make or buy to make thier games?
Personally, I'm a geek through and through. If I need something done, nine times out of ten I'll write my own tool for it. I feel more comfortable using code that I wrote because if it goes wrong I know what needs to be fixed and I don't have to jump through hoops setting up my environment and linking everything then...