how create RayCasting?
i have seen some videos, but without success :(
so i ask: and someone told me that use 1 pixel, or the square size it's the same.. so i did these function:
void...
Type: Posts; User: joaquim
how create RayCasting?
i have seen some videos, but without success :(
so i ask: and someone told me that use 1 pixel, or the square size it's the same.. so i did these function:
void...
after several time, i found the problems:
1 - the library and the headers files are for Code Blocks 32 bits and not 64 bits;
2 - the files are for "CodeBlocks\MinGW\i686-w64-mingw32\..." and not...
if was that way on codeblocks 20.03, now was working :(
is because my CodeBlocks is 64 bits?
how use Graphics.h on CodeBlocks?
i have the library and 2 headers files.
i add lib file on linker files and i add:
"-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32"
on linker options.
but i...
i'm seen several tutorials and both are big and confused. so i'm asking here so try understand it from scratch.
Part 1: we have the player with a PosX, PosY and a direction(the angle direction)......
it's hard start learning DirectX.. but with i must do it ;)
thanks for all
sorry i mean with win32.
on win32 is there code more faster than DIB's?
C++: is there a function more faster than sqrt()?
i did several searchs and i found some.. but some don't give me some results and others are slow
how can i calculate the FPS on GameLoop?
int Frame=0;
void GameLoop()
{
//GetInput();
//UpdateMovements();
//DrawFrameThings();
//Frame++;
i will tell you why:
you have 1 image... now, using the rotation math function(i have 1), rotate X, Y and Z the 4 image corners.... try draw the image on screen using the 4 corners!?! we can't......
i'm sorry, but can you explain better your function?
Pixel alphaCompositePixel(Pixel p1, Pixel p2, Byte alpha = MaxAlpha)
{
double a1f = double(p1.a) / MaxAlpha,
a2f =...
heres the entire code:
#include <iostream>#include <windows.h>
#include <cmath>
#include <stdlib.h>
#include <vector>
#include <string>
#include <algorithm>
see how i test it(i use Color instead Pixel, but it's the same):
struct Color{
BYTE Blue=0;
BYTE Green=0;
BYTE Red=0;
BYTE Alpha=0;
void RGBA(BYTE R, BYTE G, BYTE B,...
john.c correct me 1 thing: where i add the Alpha Value(between 0 and 255)?
the 'MaxAlpha' it's 'BYTE' so it's 255 of max.
but imagine that i need that the alpha be 120... where i add the 120?
on 'RGBQUAD' the 'rgbReserved' can be used for Alpha value?
RGBQUAD (wingdi.h) - Win32 apps | Microsoft Docs
so the alpha blend math is:
R = RTop + RBottom * (1 - Alpha)
G = GTop + GBottom * (1...
imagine that we have 2 pixels from differents HBITMAPS.
(for transparent, i just avoid the pixel color... it's easy)
using Math, how can i calculate the AlphaBlend?
honestly i did several searchs...
that's true... i'm trying understand more 2 functions then i can share some code and information..
why allways you get that conclusion?????
true i don't know, that's i'm asking, but tell me how i compare correctly is for make my work?????
maybe you have right, but i'm trying understand why i'm wrong.. i'm trying learning
i'm trying adapt that code to my code
i'm trying reading a JPG\GIF file, it's a binary file true and i must see it's structure for it... now i have these link about JPG format image:
JPEG File Layout and Format
like we know the file...
yes, on gmail, i getted the notification mail:
"Dear joaquim,
Guest has just replied to a thread you have subscribed to entitled - why i don't receive mails notifications? - in the Tech Board...
i realy can't use hotmail, because i don't receive the confirmation mail. only on my gmail.
what you can advice me?
(i use much more hotmail and i don't know, for now, activate my gmail desktop...
thanks from you said, i changed the mail for my gmail and i recive the confirmation mail.
now i will try go back aggain.
in 20 minutes, please, try say something here for i test it
i'm sorry.. i don't want be rude or something.... but why i don't get more help for resolve the problem?
do you need more information or something?