forum.boolean.name

forum.boolean.name (http://forum.boolean.name/index.php)
-   C++ (http://forum.boolean.name/forumdisplay.php?f=22)
-   -   OpenGL (http://forum.boolean.name/showthread.php?t=356)

HolyDel 14.07.2013 14:13

Ответ: OpenGL
 
а, точно, у него же glew.
значит не подключена glew.

Nikich 14.07.2013 15:21

Ответ: OpenGL
 
Нашел еще один годный сайт www.opengl-tutorial.org/beginners-tutorials/
Следуя инструкции удалось скомпилировать все части в VS. Однако, о создании своего проекта сказано крайне мало. Можно ли подключить все нужные библиотеки не прибегая к CMake?

HolyDel 14.07.2013 16:04

Ответ: OpenGL
 
дополнительные библиотеки можно подключать через linker/input, или через #pragma, прямо в коде, типа:
Код:

#pragma comment(lib,"opengl32.lib")
вот есть годные по форвард контексту на русском:
https://code.google.com/p/gl33lessons/wiki/Lesson01
из плюсов - намного меньше зависимостей.
я у себя в движке все библиотеки подключал черезе код. т.е. не либки, а прямо исходники библиотек засовывал в движок. собирается дольше, зато без проблем с любыми флагами компилятора.

Nikich 14.07.2013 23:28

Ответ: OpenGL
 
Цитата:

Сообщение от HolyDel (Сообщение 263408)
дополнительные библиотеки можно подключать через linker/input, или через #pragma, прямо в коде, типа:
Код:

#pragma comment(lib,"opengl32.lib")
вот есть годные по форвард контексту на русском:
https://code.google.com/p/gl33lessons/wiki/Lesson01
из плюсов - намного меньше зависимостей.
я у себя в движке все библиотеки подключал черезе код. т.е. не либки, а прямо исходники библиотек засовывал в движок. собирается дольше, зато без проблем с любыми флагами компилятора.

Черт, данные уроки не получается скомпилировать в VS2010. Как можно узнать, какие используются библиотеки? Автор об этом умолчал, а без них собрать проект вручную не выходит.

HolyDel 15.07.2013 00:26

Ответ: OpenGL
 
Код:

opengl32.lib

HolyDel 22.07.2013 20:48

Ответ: OpenGL
 
OpenGL 4.4 is out! Даже с бета драйверами от nVidia
http://www.opengl.org/registry/doc/glspec44.core.pdf

moka 22.07.2013 20:50

Ответ: OpenGL
 
А можно в кратце, что там нового и т.п.?

HolyDel 22.07.2013 22:32

Ответ: OpenGL
 
Цитата:

New functionality in the OpenGL 4.4 specification includes:
Buffer Placement Control (GL_ARB_buffer_storage)
Significantly enhances memory flexibility and efficiency through explicit control over the position of buffers in the graphics and system memory, together with cache behavior control - including the ability of the CPU to map a buffer for direct use by a GPU.

Efficient Asynchronous Queries (GL_ARB_query_buffer_object)
Buffer objects can be the direct target of a query to avoid the CPU waiting for the result and stalling the graphics pipeline. This provides significantly boosted performance for applications that intend to subsequently use the results of queries on the GPU, such as dynamic quality reduction strategies based on performance metrics.

Shader Variable Layout (GL_ARB_enhanced_layouts)
Detailed control over placement of shader interface variables, including the ability to pack vectors efficiently with scalar types. Includes full control over variable layout inside uniform blocks and enables shaders to specify transform feedback variables and buffer layout.

Efficient Multiple Object Binding (GL_ARB_multi_bind)
New commands which enable an application to bind or unbind sets of objects with one API call instead of separate commands for each bind operation, amortizing the function call, name space lookup, and potential locking overhead. The core rendering loop of many graphics applications frequently binds different sets of textures, samplers, images, vertex buffers, and uniform buffers and so this can significantly reduce CPU overhead and improve performance.

Streamlined Porting of Direct3D applications
A number of core functions contribute to easier porting of applications and games written in Direct3D including GL_ARB_buffer_storage for buffer placement control, GL_ARB_vertex_type_10f_11f_11f_rev which creates a vertex data type that packs three components in a 32 bit value that provides a performance improvement for lower precision vertices and is a format used by Direct3D, and GL_ARB_texture_mirror_clamp_to_edge that provides a texture clamping mode also used by Direct3D.

Extensions released alongside the OpenGL 4.4 specification include:
Bindless Texture Extension (GL_ARB_bindless_texture): Shaders can now access an effectively unlimited number of texture and image resources directly by virtual addresses. This bindless texture approach avoids the application overhead due to explicitly binding a small window of accessible textures. Ray tracing and global illumination algorithms are faster and simpler with unfettered access to a virtual world's entire texture set.
Sparse Texture Extension (GL_ARB_sparse_texture): Enables handling of huge textures that are much larger than the GPUs physical memory by allowing an application to select which regions of the texture are resident for 'mega-texture' algorithms and very large data-set visualizations.
меня особо радуют последние два пункта

moka 22.07.2013 23:50

Ответ: OpenGL
 
Последние два, отлично для GI пойдут и вокселей?
А вот GL_ARB_multi_bind - интерестно как будет работать, т.к. как мне известно биндинги - это не мало производительности уходит, из-за этого делают сортировки и инстансинги.

И GL_ARB_buffer_storage - это как на консолях - один буффер, заместо раздельных RAM <> VRAM?

HolyDel 23.07.2013 02:26

Ответ: OpenGL
 
скорее для мегатекстур.
второе аппаратные мегатекстуры и есть
а первое это возможность в шейдере использовать любую загруженную текстуру. т.е. снимает ограничение на кол-во привязанных текстур.

Nikich 01.08.2013 20:26

Ответ: OpenGL
 
О_о
Это уже что-то совсем невероятное.
Решил опять попробовать openGL на Code::Blocks.
На студии все отлично работает. В Code::Blocks выбираю компилятор студии. Значит все инклюды он берет из студии. Однако - не работает.
Пытается подключить glu.h, которого нет, который и не нужен так как устарел. В чем может быть дело? Может в Code::Blocks забита ранняя версия OpenGL?

St_AnGer 10.08.2013 14:44

Ответ: OpenGL
 
Попробовал создать контекст OpenGl 3.3 по первому уроку gl33lessons (в постак выше ссылка есть), вылетает на создании wglCreateContextAttribsARB (пробовал на нетбуке).

Последующий вопрос конечно глупый, т.к. видеоадаптер у меня Intel GMA 3150, да и гугл ничего хорошего не сообщил мне (поддержка OpenGL 1.4 только вроде)... Но вдруг, каким то чудом, можно... Вообщем, я в глубоком пролёте, да?

Mhyhr 10.08.2013 19:39

Ответ: OpenGL
 
Де-факто да.

HolyDel 10.08.2013 21:31

Ответ: OpenGL
 
wglCreateContextAttribsARB это 3.0 и выше.
на всяких там i3, i5, i7 оно поддерживается.
на нетбуках врятли.
чтобы не вылетало сравнивай с нулем указатель на функцию после получения. по крайней мере будет ясно где ошибка.

ABTOMAT 10.08.2013 23:46

Ответ: OpenGL
 
Цитата:

Сообщение от HolyDel (Сообщение 265119)
wglCreateContextAttribsARB это 3.0 и выше.
на всяких там i3, i5, i7 оно поддерживается.
на нетбуках врятли.
чтобы не вылетало сравнивай с нулем указатель на функцию после получения. по крайней мере будет ясно где ошибка.

На i7 жи нет графического ускорителя?


Часовой пояс GMT +4, время: 13:39.

vBulletin® Version 3.6.5.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot