Compiling RF with Visual C++ 2005 Express

Programming Reality Factory and Genesis3D.
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

You're forgetting that with lightmaps, it is possible to have much moe detail in the scene. A lightmap can for example provide sharp shadows, whereas Direct3D7 can only have pervertex lighting. It would consume an insane amount of vertices to get the shadows as detailed as with a lightmap, which would then be slower.
That is a myth. Lightmaps look better in certain circumstances. Vertices for shadows should only be the outline of the model. So, it should not take any more vertices than it does now. Shadows are not using the light itself. They are using the position and direction of the light to figure out the location and orientation of the shadow.

DX9 renders large batches better. In order to get detail that you are speaking of, you would need to tesselate the BSP faces to hundreds of polys. This can be done on BSP compile. Being that Genesis compiles it's BSP, the BSP can be loaded into one vertex and index buffer and DrawIndexedPrimitive() can be called once per face (in this case a face would be hundreds of polys which would be OK.

If you use DX9, you don't need fixed function lighting. Shaders can light your way. That becomes not only more efficient, but will include way more detail as the lighting can be per-pixel. No one (except HL2) uses lightmaps anymore. Everyone is using lighting models implemented in shaders.
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

Trying adding a source file to your project.
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 »

AndyCR wrote:Every time I open a project's XML file accidentally like you did, I curse Microsoft for the dumb functionality...

You have the "project" open, but not the -project- open. To open the actual project, choose File->Open->Project/Solution... and choose the project file.
I did as you said and the build menu is now clickable. However there is no "Build All". Also the text for the code doesn't show up in the editor, its just blank grey.

paradoxnj wrote:Trying adding a source file to your project.
I'm not sure what you mean. I have all the resources in the right places and the program is pointed to them as outlined by QOD.
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

Try the Build->Build Solution menu item.
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

Actually, it looks like you have a solution but no project. Right click the Solution in the Solution Explorer and select add New Project.
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 »

paradoxnj wrote:Actually, it looks like you have a solution but no project. Right click the Solution in the Solution Explorer and select add New Project.
It says "(1 Project)" next to the name of the solution in the Solution Explorer.

AndyCR wrote:Try the Build->Build Solution menu item.
This what I get when I do that.

Code: Select all

------ Build started: Project: RGF, Configuration: Debug Win32 ------
Compiling...
XForm.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
SplinePatch.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Spline.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CurvedSurface.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
QxUser.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainVert.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainUtils.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainTile.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainPoly.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainMgr.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainMapBase.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainMap.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxTerrainDefinitionFile.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxSun.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxStars.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxSkyDome.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxParticle.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxMoon.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxEffectTextureFlow.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxEffectParticleChamber.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
qxEffectBase.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxColor.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxCloudMachine.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
qxBinTriTree.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Utilities.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
TPool.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
StreamingAudio.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
SPool.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
RabidFrameworkMain.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
PWXImageManager.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
ProcWater.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcUtil.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcSmoke.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcPlasma.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcParticles.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcFlow.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcFire.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcElectricFx.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
ProcBumpmap.cpp
c:\realityfactory\source\procutil.h(7) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
OggAudio.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
Mixer.cpp
c:\realityfactory\source\mixer.h(24) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
IniFile.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
EffParticle.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
EffManger.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CWeapon.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CWallDecal.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CViewSwitch.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CVideoTexture.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CutScene.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CTriggers.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CTeleporter.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CStaticMesh.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CStaticEntity.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CSpout.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CSoundtrackToggle.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CShake.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CScriptPoint.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CRGFComponent.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CRain.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CProcedural.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
CPolyShadow.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPlayer.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPersistentAttributes.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPawnLow.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPawnHigh.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPawnCon.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPawn.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPathFollower.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CPathDatabase.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CParticleSystem.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Collider.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CNetwork.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CNetBuffer.cpp
c:\realityfactory\source\cnetbuffer.cpp(14) : fatal error C1083: Cannot open include file: 'genesis.h': No such file or directory
CMp3.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CMovingPlatforms.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CMorphingFields.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CMorph.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CModelManager.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CMIDIAudio.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CMessage.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
CMenu.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CLogic.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CLiquid.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CLevelController.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CInventory.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CInput.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CHeadsUpDisplay.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Chaos.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CGenesisEngine.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CFoliage.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CFloating.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CFlipTree.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CFlipBook.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CFlame.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CFixedCamera.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CFirePoint.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CExplosion.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CEntityRegistry.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CElectric.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CEffects.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
CDynalite.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CDSpotLight.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CDecal.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CDamage.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CCurve.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CCountDown.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CCorona.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CCommonData.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CChangeLevel.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CChange.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CCDAudio.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CCameraManager.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CAVIPlayer.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CAutoDoors.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CAudioStream.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CAudioManager.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CAttribute.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CArmour.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CAreaChecker.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CAnimGif.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Compiling...
CActorManager.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
CActMaterial.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
C3DAudioSource.cpp
c:\realityfactory\source\rabidframework.h(74) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Debug\AutoSelect.sbr': No such file or directory
Build log was saved at "file://c:\RealityFactory\source\Debug\BuildLog.htm"
RGF - 124 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

You didn't tell VC++ where it can find the header files. Follow QuestofDream's instructions at the beginning of this topic.
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 »

paradoxnj wrote:You didn't tell VC++ where it can find the header files. Follow QuestofDream's instructions at the beginning of this topic.
Here are creenies of what I have told the compiler to use and where it is.

I followed QOD's instruction to the letter as best I could.

Image

Image

Is there anything that I missed?

I did search my entire HD for "windows.h" and found nothing.
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

If you found no "windows.h" file on your hard drive, you should reinstall the platform sdk.
3didy
Posts: 12
Joined: Tue Oct 16, 2007 10:05 am

Post by 3didy »

hi
i'm new to game,cant compile too ,the SW disappear from window XP totally after click compile
How can i check if i miss some plugin ?
thn
User avatar
aicd99
Posts: 264
Joined: Mon Oct 10, 2011 11:17 am

Re: Compiling RF with Visual C++ 2005 Express

Post by aicd99 »

Could you tell me how to compile tpack.exe (Reality Factory Texture Packer) using visual c++ 2006 please
Post Reply