Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 09 Jan 2007
Offline Last Active Jun 29 2015 07:31 PM

Topics I've Started

(Picture) C#: Can anyone explain how this is possible? IF statement is false, yet it...

23 June 2015 - 11:21 AM

I looked at the codes high and low, as hard as I can, but my mind can't compute. How?


See attachment below.


Attached File  capture.png   221.42KB   3 downloads

What should I do now that I implemented a game mechanic that is not popular among playe...

05 June 2015 - 10:51 PM

I, as a college student game dev, have stated before to the players that there will be an update as well as a revamped game mechanic. As I discussed further and explained the reasons why this game mechanic is better, why the old one has numerous issues, and why maintaining the old one is difficult for me, players are now unhappy with it.


One of the many players explained that the game mechanic makes the game not enjoyable, not fun to play, and unintuitive to use. They would like for me to keep the old mechanics.


I reluctantly disagreed and said I will not revert back, but I still kept getting topics about this. I wanted to know if I am doing the right thing. I wanted to know that I should trust my gut, even when there's a looming danger that I will lose some of my players. Any advice?


(Note: my game is a very small one. I am not paid for the game, nor am I selling it. It's just that one of its mechanics made the group of players split into two polarized sides.)

Untrusted site notification from Windows Defender

18 January 2015 - 04:46 PM

This is a snippet of a screenshot showing what I'm receiving from gamedev.net.





Going back a page and reclicking on the link to Gamedev.net from Google solves the issue, so I guess it's minor?

How do I load a DLL into an EXE dependent of that DLL in a Visual Studio solution

01 January 2015 - 08:54 PM

I am currently trying to load a DLL into an EXE that is project dependent of that DLL in a Visual Studio 2013 solution environment. I have 2 projects in 1 solution. One of the project generates a DLL, while the other project generates an EXE that loads the DLL into the application once all projects have been built, and the debugger starts debugging the EXE.


I have generated a DLL, but I have no idea how to get the EXE to load that DLL. The only main issue I am having is the directories for the DLL and the directory the EXE is looking at, which is configured in the project properties for both the DLL project and the EXE project.


Below are the project properties I have:


testDLL project properties:




Bar project properties. All the "Bar" project does is it loads the testDLL DLL module, obtain the function in the DLL, runs, and quits.




Codes are given below:



Bar project main.cpp code. The only code in the Bar project.

#include <Windows.h>
#include "../testDLL/test.h"

foo_bar* foo_empty(int a, int b){
	return 0;

int main(){
	foo_bar* FunctionPointer = foo_stub;
	HMODULE TestDLLModule = LoadLibraryA("testDLL.dll");
	if (TestDLLModule){
		FunctionPointer = (foo_bar*) GetProcAddress(TestDLLModule, "foo_bar");
		if (FunctionPointer){
			return FunctionPointer(1, 2);
	return -1;

testDLL header code, test.h. This is in the testDLL project.

#define FOO(name) int name(int a, int b)
typedef FOO(foo_bar);
	return 0;

DLL main.cpp code in testDLL project.

#include "test.h"

	return 14;

int main(){
	return foo(1, 2);

How should I set the project properties for both projects? Thanks in advance.

Need feedback on my notetaking: Is my light diffusion notes correct?

18 November 2014 - 06:30 PM

I would like to have feedback on my notes about light diffusion. I wanted to get it correct so that I know what it is and what to look for in my notes when I want to find it again. I do stress that I wanted to keep it simple, and easy for me to read and digest, rather than having to go over certain terms that is being used. This way, I can avoid having to look up the term on Wikipedia or Google, in case I truly forgot.


This is the light diffusion notes:



Adding colors is used to add brightness and contrast to colors being chosen.

Multiplying colors of similar hue and color gives minimal differences, this can be used on determining how much light is being reflected on the surface, and how much color has been reflected from the light source to the eyes of a viewer. However, with different hues and colors, it would give the polar opposite, making the target color duller and washed out than before.

For a given light source, S, when I shine the directional light onto a surface, the diffuse intensity of the light is determined by the dot product of the directional light vector and the reflection vector.

That dot product must then multiplied multiple times by itself, which gives me the tiny, yet different, hues and colors of the object's surface color. These colors, when spread out from the maximum light diffuse intensity on the surface of the object (i.e., the white light), will create the illusion of light and shadow.

Note that for objects that reflect light, each of them has a spectral value, named "specular value", which is a value that determines how spread out the light diffuse is on the surface of the object. This value is used to determine the object's shininess. For example, metal objects have a higher spectral value, while plastic and wood have a lower spectral value.


I appreciate any feedback. Thanks for your time.