Jump to content

Joaquim

Member
  • Posts

    352
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Portugal

Everything posted by Joaquim

  1. how can i execute the Windows ME setup with 2GB's of RAM? my problem is when i do the command 'setup', nothing happpens... only black screen
  2. the Power Meter Plus v1.6.1 links don't works i'm trying the ACPI registry
  3. there is a program for get battery percentage? i have a battery.. ok damage(maybe 15 minutes)... but the OS don't give me the battery percentage.. is there a program for get it?
  4. and worst.. i tested just with 1 line, and seems not working lol i must retest the GetLineZZero() and DrawPolygon().
  5. i think i know the problem: the polygon is a serie of lines\dots. but some can be from right to left(normaly the Destination is more far and not more close ). heres the position structure: struct position { float Pos3DX; float Pos3DY; float Pos3DZ; float PosX; float PosY; //Convert 3D to 2D: POINT Perspective(int FocalDistance=300, POINT Center={0,0}) { if(Pos3DZ==0) Pos3DZ=1; float perspect=FocalDistance/(FocalDistance+Pos3DZ); float PosX2D = Pos3DX*perspect + Center.x; float PosY2D = Pos3DY*perspect + Center.y; POINT pos; pos.x=trunc(PosX2D); pos.y=trunc(PosY2D); return pos; } }; and see the GetLineZZero() header: position GetLineZZero(position Origin, position Destination) imagine if the 'Destination' is a Left point and the Origin is the Right point.... how can i compare the values? is just like: if(Destination.Pos3DX < Origin.Pos3DX || Destination.Pos3DY < Origin.Pos3DY || Destination.Pos3DZ < Origin.Pos3DZ) SwapPosition(Origin,Destination);//Swap function not created i'm I right?
  6. Yes i'm trying clipping the 3D shape. I try avoid the Z negative. But the wrong coordenates continue happen... so what you advice more? Anotherthing is best create my own function for draw a line?
  7. 'DrawPolygon()' draw a wall... but how can i control the draw position? i can't draw something less than zero Z(behind the player\window\view)... so how can i control it?
  8. heres my perspective function: POINT Perspective(int FocalDistance, POINT Center={0,0}) { float PosX2D = Pos3DX /(FocalDistance+Pos3DZ)+ Center.x; float PosY2D = Pos3DY /(FocalDistance+Pos3DZ)+Center.y; POINT pos; pos.x=round(PosX2D); pos.y=round(PosY2D); return pos; } these function is wrong... how the perspective function works: 1 - we must calculate the perspective(please use float or double types on divisions): float Perspective = FocalLenght / (FocalLenght + PolygonPosZ); 2 - using the Perspective, we can change the shape scale or position(scale too): float PosX2D = Pos3DX * Perspective; float PosY2D = Pos3DY * Perspective; 3 - now we can add the center of screen to the position: PosX2D = PosX2D + ViewCenter.x; PosY2D = PosY2D + ViewCenter.y; 4 - the Polygon()(for example) use the POINT pointer.. the POINT structer use LONG type(integers)... so we need use the trunc() function for convert them: POINT pos; pos.x=trunc(PosX2D); pos.y=trunc(PosY2D); now i can draw a polygon: vector<position> Polygon3D={ {30, 145,0}, {85, 165,0}, {105, 110,10}, {65, 125,10}, {30, 105,0} }; vector<POINT> polygon; for(int index=0; index<Polygon3D.size(); index++) { polygon.push_back(Polygon3D[index].Perspective(300,{WindowSize.right/2, WindowSize.bottom/2 })); } //... DrawPolygon(HDCConsole,polygon,hPen1,hPlane); void DrawPolygon(HDC HDCDestination, vector<POINT> points, HPEN LineColor, HBRUSH PlaneColor) { HPEN hOldPen = (HPEN)SelectObject(HDCDestination, LineColor); HBRUSH hOldBrush = (HBRUSH)SelectObject(HDCDestination, PlaneColor); Polygon(HDCDestination,points.data(),points.size()); SelectObject(HDCDestination, hOldPen); SelectObject(HDCDestination, hOldBrush); } yes the 'data()' give us in right vector type type. see the result: https://imgur.com/DcU5Aov thank you so much for all. in time i will create a wall shape for test.
  9. done code: #include <windows.h> #include <iostream> #include <algorithm> #include <vector> #include <math.h> using namespace std; HDC HDCConsole = GetWindowDC(GetConsoleWindow()); struct position { float Pos3DX; float Pos3DY; float Pos3DZ; float PosX; float PosY; POINT Perspective(int FocalDistance, POINT Center={0,0}) { float PosX2D = Pos3DX /(FocalDistance+Pos3DZ)+ Center.x; float PosY2D = Pos3DY /(FocalDistance+Pos3DZ)+Center.y; POINT pos; pos.x=round(PosX2D); pos.y=round(PosY2D); return pos; } }; void DrawPolygon(HDC HDCDestination, vector<position> Points, HPEN &LineColor, HBRUSH &PlaneColor) { HPEN hOldPen = (HPEN)SelectObject(HDCDestination, LineColor); HBRUSH hOldBrush = (HBRUSH)SelectObject(HDCDestination, PlaneColor); POINT pos[Points.size()]; for(unsigned int index=0; index<Points.size(); index++) { pos[index]=Points[index].Perspective(300,{0,0}); } if(Polygon(HDCDestination,pos,4)==FALSE) MessageBox(NULL,"error","error", MB_OK); SelectObject(HDCDestination, hOldPen); SelectObject(HDCDestination, hOldBrush); } int main() { vector<position> Rec; Rec.push_back({0,0,0}); Rec.push_back({10,0,0}); /*Rec.push_back({10,10,0}); Rec.push_back({0,10,0}); Rec.push_back({0,0,0});*/ HPEN hPen1 = CreatePen(PS_SOLID, 1, RGB(0, 255, 0)); HBRUSH hPlane = CreateSolidBrush(RGB(0,255,0)); do { DrawPolygon(HDCConsole,Rec,hPen1,hPlane); }while(!(GetKeyState(VK_ESCAPE) & 0x8000)); DeleteObject(hPen1); DeleteObject(hPlane); return 0; } see the perspetive(): POINT Perspective(int FocalDistance, POINT Center={0,0}) { float PosX2D = Pos3DX /(FocalDistance+Pos3DZ)+ Center.x; float PosY2D = Pos3DY /(FocalDistance+Pos3DZ)+Center.y; POINT pos; pos.x=round(PosX2D); pos.y=round(PosY2D); return pos; } see on the Polygon(): POINT pos[Points.size()]; for(unsigned int index=0; index<Points.size(); index++) { pos[index]=Points[index].Perspective(300,{0,0}); } if(Polygon(HDCDestination,pos,4)==FALSE) MessageBox(NULL,"error","error", MB_OK); if the center is {0,0} the line isn't showed. if the center is {100,100}... the line is showed. The X seems ok... but Y ins't... the line seems drawed much more than window. int main() { vector<position> Rec; Rec.push_back({0,0,0}); Rec.push_back({10,0,0}); /*Rec.push_back({10,10,0}); Rec.push_back({0,10,0}); Rec.push_back({0,0,0});*/ so what is wrong with my perspective code?
  10. I'm asking because of results. But i need add a correction for dont draw behind the player.
  11. SoundFX don't work with sound effects(tested).. thanks for all thanks for all to all
  12. Is always best the window center be the point 0,0? And using float positions? Then i must trunc() or round() to convert to integer?
  13. hi @Wunderbar98.. at least i have sound on DOS games without using DOSBox or something
  14. i need 1 correction: the screen only use 2D(X, Y) and not 3D(X, Y, Z)... so how can i create the perspective? is these math correct: PosX2D = PosX3D /(FocalDistance+PosZ3D); PosY2D = PosY3D /(FocalDistance+PosZ3D) ? i have seen several tutorials and seems that they have their own Perspective. understand these, i can create my own polygon and move front-back, and left-right.
  15. can i use the 'SBEMIXER.EXE' if my DOS sound driver is VMDSound?
  16. can i change the sound volume on MS-DOS games? seems that the midi volume seems low on all MS-DOS games... how can i change it?
  17. heres some steps: 1 - install Windows 98 with these MS-DOS command 'setup /pi'(or it will give you errors and not install... i think that will happen when when try detect the drivers) not use Windows 98 UBCD, because it will give you some errors more late... use the official installation); 2 - after copy files to disk, before 1st boot and driver detection, we will get the black screen or memory error... because we have more than 2GB's of memory... for resolve it we use 'PATCHMEM - Win9x patch to use up to 4GB of RAM' : https://archive.org/details/PATCHMEM ; 3 - now we can install the windows 98 without problems; 4 - now we need the drivers... for we get the ID's we use HP System Diagnostics: 5 - and heres some drivers for Win9x packs: https://retrosystemsrevival.blogspot.com/2019/06/driver-packs-for-windows-9598me.html and https://archive.org/details/UltimateWindowsDriverPackforVistaxp9895me20002003 both links are very good; 6 - now we need audio driver: http://www.sierrahelp.com/Utilities/Emulators/VDMSound/VDMSound9x(Alpha).html (1st use install.bat and see if vcredist is installed... now add the dosdrv.bat shortcut on startup)... and use too the setblaster: https://retrosystemsrevival.blogspot.com/2019/04/dos-sound-blaster-setter.html. i'm speaking on both, because seems that it's the best way for work fine; 7 - now we need the USB drivers: http://startup.retropc.se/win98.html please descompact the 'NUSB36e' and search the driver for get the 2.0 ; 8 - for NTFS we have several places: https://archive.org/details/ntfsdosand98 . now remember that some external disks need more power, and it can freeze the Windows; 9 - on http://startup.retropc.se/win98.html we have the SP3... please install only the core main updates... because it can change several things on Windows and some maybybe will not work... please use only core main(autopatcher is good, but it will reboot the windows several times and we must use several times the mem patch); install the IE6SP1 first; 10 - on these steps, if we see the black screen, on boot, or an error message, use the mem patch; 11 - for turn off the computer we need the ACPIOFF pack and patch for win 9x / 3x(only works with SP3 or autopatcher or both(please install the IE6SP1 first) : thank you so much for all to all. if i miss something, please tell me for i add here
  18. heres the 'mem': https://imgur.com/a/4awn6o5 "Which driver? VGA 16 Colors?" vesa vbemp9x driver. the black screen happens.. seems that no matter what driver, the black screen will happen. now i must fix 1 patch for turn off the laptop thank you so much for all to all. now i can use Windows 98 normally and MS-DOS sound. thank you so much for all to all. (i must try change these topic title)
  19. using another video driver, i get the same black screen... so the problem is the game or my laptop incompatible? but not arguments
  20. finally i get sound: https://www.vogons.org/viewtopic.php?t=900 i download the alpha2. can i change the sound volume on driver?(not on Windows, but on driver)
  21. 'VDMSound ' isn't working.. maybe i'm using the XP version.. but i don't know i only get errors when trying enable the sound
  22. "VBEMP" only uses 16 colors... more i will get errors "Joaquim, wolf4gw does not always automatically enable sound, when detected. You need to change the settings in the "Game's" sound options." on speaker, and only sound effects i'm trying get the VDMSound working... maybe your tips works
  23. i found a new links: https://archive.org/details/VBEMP2010.06.01 https://archive.org/details/vesa_graphics_drivers_iso and the search: https://archive.org/search.php?query=Vesa+Video+Display+Driver+universal now i will test the 2010 version now i need a driver for MS-DOS audio(no luck for now)
  24. "If you mean the links for VBEMP, try the middle [?] link. The first ones are dead." they seem dead too or i must delete the browser history
  25. The sod4gw.exe works fine. But video driver not changed. The downloads links aren't working. At least i can play the game. Thanks. Theres the same type file for Jazz game? I must patch it for execute the game. I belive that is about CPU speed. Moderator: please change the topic title for: "how use windows 98 on modern computers?" Thanks for all
×
×
  • Create New...