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!


kazisami

Member Since 18 Jun 2012
Offline Last Active Sep 10 2014 03:26 AM

Topics I've Started

Help regarding my EPUB reader

20 March 2013 - 07:20 AM

I am trying to make an EPUB reader for windows 7. My first attempt was to search and understand what is inside .epub files. But most of the time, I got answers related to iPhone epub reader, like- unzipping, locating XHTML/XML(not sure) file and parsing it etc. But the .epub files in my pc do not contain things like this.

 

Can anyone tell me the difference in pc .epub files and an high level view of the process, so that I can at least start searching and finding information.

 

Thanks. 


MADE A SIMPLE NEURAL NETWORK, BUT NOT SURE IF I DID IT RIGHT

26 February 2013 - 10:53 PM

A simple single unit adaptive network:

graphic2.gif

The network has 2 inputs, and one output. All are binary. The output
is

1 if W0 *I0 + W1 * I1+ Wb > 0 

0 if W0 *I0 + W1 * I1+ Wb <= 0 

We want it to learn simple OR: output a 1 if either I0 or I1 is 1.

 

 

 

 

 

 

For Solving this problem i have made this-

#include <iostream>
 
struct Newron
{
   int value;
   int weight;
};
 
int main()
{
  Newron input_one, input_two, output;
  int bias = 0;
 
  input_one.weight = 1;
  input_two.weight = 1;
 
  std::cin >> input_one.value;
  std::cin >> input_two.value;
 
  output.value = (input_one.value * input_one.weight) + (input_two.value * input_two.weight) + bias;
 
  if(output.value > 0)
    std::cout << 1 << std::endl;
  else
    std::cout << 0 << std::endl;
 
  return 0;
}

Is it the right way?

If not then how it can be done?

 

Thanks for your help in advance.


Problem with game components

16 January 2013 - 02:01 AM

Recently I came across the idea of creating games using Components.

 

I searched and found this and read some gamedev posts.

 

What i understood is, there is a abstract GameObject class, which is basically the Component container. Every object in the game will inherit from just this class and implement its pure virtual Update() function. They can also add necessary components.

 

We also have a abstract Component class, every component inherits from it and implements its pure virtual Update() method. This method is called inside the GameObjects's Update() method?

 

First Qus: Am I right about what I said above? If wrong, where am I wrong?

 

Second Qus: Is there another way to do this? A better way?

 

After that, the components need to talk with each other, and the best way to do this is to use a messaging system.

 

Third Qus: But if the game is large enough, won't there be thousands of message types?

 

Fouth Qus: Let's say, we have a physics component, is it necessary that this component has to be same for all GameObjects? I mean the same class with same data and functionality?

 

Fifth Qus: Can GameObject's change component behaviour or attribute?

 

Sixth Qus: If the physics component is unique(or you can say that the ans of 4th qus is yes), then if i want some GameObject to have the gravity of 9.8 and others of 4.9, how can i accomplish that?

 

Thanks in advance.


LOTS OF OPTIONS, WHAT TO DO?

06 September 2012 - 09:19 AM

As many game developers start, i started in the way of game development by getting inspired by a game...

Its about 2 years ago. From then i have just stumbled from one language to other, one api to other.

1. I made a Tic-Tac-Toe game with Java and Netbeans.

2. Pong and two other unique game of mine with Unity3d. which i uploaded in Kongregate. i used javascript and c# there.

3. Breakout with XNA.

4. used some sdl/directx/opengl/allegro/jmonkey/actionscript..

5. i even know maya character modeling/rig/animation/exporting them to unity...

6. i bought so many books on game development in every sector.

7. i read so many tutorials..

8. I am comfortable with all of them, but i coudnt mastered any of it.

i know its my fault and no one can do anything about it.

but as you guys are so experienced, so i want some good advice.

MY PROBLEM IS: when i start learning a new language, i think that i should use an api of that language to do something productive, then i move to an engine regarding that language and then i start thinking about making a game engine alongside a game and after someday, i throw it away... i am not scared of learning or doing hard work, but i loose patience...

How do you guys keep on at something (in most of the case just 1 thing) for so long?

sorry, if i irritated you guys, i know im a noob, thats why im asking and need you people to answer me...

PARTNERS